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: node-exporter:
image: 'prom/node-exporter:v1.3.1' image: 'prom/node-exporter:v1.3.1'
hostname: srv-{{.Node.Hostname}}
command: command:
- '--path.procfs=/host/proc' - '--path.procfs=/host/proc'
- '--path.rootfs=/rootfs' - '--path.rootfs=/rootfs'
@ -79,8 +80,6 @@ services:
- '/proc:/host/proc:ro' - '/proc:/host/proc:ro'
- '/sys:/host/sys:ro' - '/sys:/host/sys:ro'
- '/:/rootfs:ro' - '/:/rootfs:ro'
# Hopefully causes node-exporter to show the correct hostname
- '/etc/hostname:/etc/hostname:ro'
configs: configs:
prometheus_v6: prometheus_v6: