From 9f9ca1ada7142387875236801f9def45a4db6d6d Mon Sep 17 00:00:00 2001 From: traveler Date: Tue, 7 Apr 2026 22:34:42 -0500 Subject: [PATCH] gfdds --- swarm/monitoring.yaml | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/swarm/monitoring.yaml b/swarm/monitoring.yaml index 3493954..00e4a53 100644 --- a/swarm/monitoring.yaml +++ b/swarm/monitoring.yaml @@ -164,9 +164,9 @@ services: # ============================================================ cadvisor: image: gcr.io/cadvisor/cadvisor:latest + hostname: "{{.Node.Hostname}}" environment: TZ: America/Chicago - hostname: "{{.Node.Hostname}}" command: - --docker_only=true - --store_container_labels=false @@ -195,13 +195,17 @@ services: # ============================================================ node-exporter: image: prom/node-exporter:latest + hostname: "{{.Node.Hostname}}" environment: TZ: America/Chicago + NODE_HOSTNAME: "{{.Node.Hostname}}" command: - --path.rootfs=/host - --collector.filesystem.mount-points-exclude=^/(sys|proc|dev|host|etc)($$|/) + - --collector.textfile.directory=/etc/node-exporter volumes: - /:/host:ro,rslave + - /etc/hostname:/etc/hostname:ro networks: - netgrimoire deploy: