This would be so cool if it worked
parent
a105cf0d30
commit
4158ffc469
|
@ -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:
|
||||||
|
|
Loading…
Reference in New Issue