From a2ab464d505961326e552576cc14bb8b5d02dae4 Mon Sep 17 00:00:00 2001 From: Jef Roosens Date: Wed, 26 Jan 2022 09:12:07 +0100 Subject: [PATCH] Added hostname mount to node-exporter --- stacks/monitor.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/stacks/monitor.yml b/stacks/monitor.yml index 23b7990..1d3b87d 100644 --- a/stacks/monitor.yml +++ b/stacks/monitor.yml @@ -79,6 +79,8 @@ services: - '/proc:/host/proc:ro' - '/sys:/host/sys:ro' - '/:/rootfs:ro' + # Hopefully causes node-exporter to show the correct hostname + - '/etc/hostname:/etc/hostname:ro' configs: prometheus_v6: