Skip to content

Instantly share code, notes, and snippets.

@trim21
Last active December 18, 2022 14:24
Show Gist options
  • Star 2 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save trim21/52b0932ecc300b2a766f28192ae18084 to your computer and use it in GitHub Desktop.
Save trim21/52b0932ecc300b2a766f28192ae18084 to your computer and use it in GitHub Desktop.
# agent-local is intended to be used with docker-compose.integrations.yaml.
server:
log_level: info
http_listen_port: 12345
#log:
# level: debug
metrics:
wal_directory: /tmp/agent
global:
scrape_interval: 15s
remote_write:
- url: http://you-public-ip-domain:9009/api/prom/push
configs:
- name: default
scrape_configs:
- job_name: 'transmission'
static_configs:
- targets: ['127.0.0.1:3003']
logs:
configs:
- name: default
positions:
filename: /tmp/agent/positions.yaml
clients:
- url: http://loki-domain:3100/loki/api/v1/push
scrape_configs:
- job_name: system
static_configs:
- targets:
- localhost
labels:
__path__: /var/log/*log
job: varlogs
agent: agent
integrations:
agent:
enabled: true
node_exporter:
enabled: true
disable_collectors:
- "mdadm"
redis_exporter:
enabled: true
redis_addr: 127.0.0.1:6379
cadvisor:
enabled: true
scrape_interval: 5s
store_container_labels: false
docker_only: true
storage_duration: 10m
docker: "unix:///var/run/docker.sock"
# metric_relabel_configs:
# - source_labels: [name]
# regex: '^$'
# action: drop
raw_cgroup_prefix_allowlist:
- ""
enabled_metrics:
# - disk
# - diskIO
- memory
# - network
- cpu
- cpuLoad
# - tcp
# - udp
# disabled_metrics:
# - accelerator
## - disk
# - memory_numa
## - udp
# - sched
# - hugetlb
# - referenced_memory
# - resctrl
# - percpu
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment