sfdad
This commit is contained in:
parent
0af60dbeee
commit
04863ab6f3
1 changed files with 3 additions and 1 deletions
|
|
@ -194,13 +194,15 @@ services:
|
||||||
# ============================================================
|
# ============================================================
|
||||||
# NODE EXPORTER — Host metrics (all nodes)
|
# NODE EXPORTER — Host metrics (all nodes)
|
||||||
# ============================================================
|
# ============================================================
|
||||||
node-exporter:
|
node-exporter:
|
||||||
image: prom/node-exporter:latest
|
image: prom/node-exporter:latest
|
||||||
|
hostname: "{{.Node.Hostname}}"
|
||||||
environment:
|
environment:
|
||||||
TZ: America/Chicago
|
TZ: America/Chicago
|
||||||
command:
|
command:
|
||||||
- --path.rootfs=/host
|
- --path.rootfs=/host
|
||||||
- --collector.filesystem.mount-points-exclude=^/(sys|proc|dev|host|etc)($$|/)
|
- --collector.filesystem.mount-points-exclude=^/(sys|proc|dev|host|etc)($$|/)
|
||||||
|
- --collector.textfile.directory=/host/etc/node-exporter
|
||||||
volumes:
|
volumes:
|
||||||
- /:/host:ro,rslave
|
- /:/host:ro,rslave
|
||||||
networks:
|
networks:
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue