add exporter & cadvisor
This commit is contained in:
parent
895dfc1e89
commit
d623f12015
1 changed files with 25 additions and 0 deletions
|
@ -22,5 +22,30 @@ services:
|
||||||
volumes:
|
volumes:
|
||||||
- /docker/appdata/grafana:/etc/grafana/provisioning/datasources
|
- /docker/appdata/grafana:/etc/grafana/provisioning/datasources
|
||||||
|
|
||||||
|
node_exporter:
|
||||||
|
image: quay.io/prometheus/node-exporter:v1.8.2
|
||||||
|
container_name: node_exporter
|
||||||
|
command: "--path.rootfs=/host"
|
||||||
|
pid: host
|
||||||
|
restart: unless-stopped
|
||||||
|
volumes:
|
||||||
|
- /:/host:ro,rslave
|
||||||
|
|
||||||
|
cadvisor:
|
||||||
|
image: ghcr.io/cadvisor/cadvisor:v0.49.1
|
||||||
|
container_name: cadvisor
|
||||||
|
# ports:
|
||||||
|
# - 8080:8080
|
||||||
|
volumes:
|
||||||
|
- /:/rootfs:ro
|
||||||
|
- /run:/run:ro
|
||||||
|
- /sys:/sys:ro
|
||||||
|
- /var/lib/docker/:/var/lib/docker:ro
|
||||||
|
- /dev/disk/:/dev/disk:ro
|
||||||
|
devices:
|
||||||
|
- /dev/kmsg
|
||||||
|
privileged: true
|
||||||
|
restart: unless-stopped
|
||||||
|
|
||||||
volumes:
|
volumes:
|
||||||
prom_data:
|
prom_data:
|
Loading…
Add table
Reference in a new issue