Commit 07fcb48a authored by kaiyou's avatar kaiyou

Move agents to stats

parent e09eac42
version: '2.1'
services:
node-exporter:
image: prom/node-exporter:latest
restart: always
volumes:
- /proc:/host/proc:ro
- /sys:/host/sys:ro
- /:/rootfs:ro
command:
- '--path.procfs=/host/proc'
- '--path.sysfs=/host/sys'
- '--path.rootfs=/rootfs'
cadvisor:
image: google/cadvisor
restart: always
volumes:
- /:/rootfs:ro
- /var/run:/var/run:rw
- /sys:/sys:ro
- /var/lib/docker/:/var/lib/docker:ro
command: --docker_only=true --housekeeping_interval=10s --disable_metrics=tcp,udp,sched,process,disk,network
prometheus:
image: prom/prometheus:v2.16.0
volumes:
- ./prometheus.yml:/etc/prometheus/prometheus.yml
- ./data:/prometheus
extra_hosts:
- "phobos: ${ipv6}"
loki:
image: grafana/loki:latest
command: --config.file=/etc/loki/local-config.yaml
ports:
- ${ipv6}:3100:3100
volumes:
- ./loki:/tmp/loki
grafana:
image: grafana/grafana:6.6.2
......
......@@ -15,11 +15,11 @@ scrape_configs:
- job_name: 'node'
static_configs:
- targets: ['phobos:7001']
- targets: ['node-exporter:9100']
- job_name: 'cadvisor'
static_configs:
- targets: ['phobos:7002']
- targets: ['cadvisor:8080']
metric_relabel_configs:
- source_labels: ['container_label_com_docker_compose_project']
target_label: app
......@@ -37,7 +37,4 @@ scrape_configs:
scheme: "https"
static_configs:
- targets: ['matrix.tedomum.net:443']
- job_name: 'loki'
static_configs:
- targets: ['loki:3100']
]
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment