Added hostname mount to node-exporter

master
Jef Roosens 2022-01-26 09:12:07 +01:00
parent 7f003b4a21
commit a2ab464d50
Signed by: Jef Roosens
GPG Key ID: 955C0660072F691F
1 changed files with 2 additions and 0 deletions

View File

@ -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: