This would be so cool if it worked

master
Jef Roosens 2022-01-26 09:28:13 +01:00
parent a105cf0d30
commit 4158ffc469
Signed by: Jef Roosens
GPG Key ID: 955C0660072F691F
1 changed files with 1 additions and 2 deletions

View File

@ -64,6 +64,7 @@ services:
node-exporter:
image: 'prom/node-exporter:v1.3.1'
hostname: srv-{{.Node.Hostname}}
command:
- '--path.procfs=/host/proc'
- '--path.rootfs=/rootfs'
@ -79,8 +80,6 @@ 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: