Add listening port flag to node exporter command

This commit is contained in:
Prathamesh Musale 2023-12-27 14:12:25 +05:30
parent ce7d91d1bb
commit 231c4f94ec

View File

@ -5,12 +5,11 @@ services:
image: prom/node-exporter:latest image: prom/node-exporter:latest
restart: unless-stopped restart: unless-stopped
command: command:
- '--web.listen-address=:9100'
- '--path.rootfs=/host' - '--path.rootfs=/host'
- '--collector.systemd' - '--collector.systemd'
- '--collector.processes' - '--collector.processes'
network_mode: host network_mode: host
pid: host pid: host
ports:
- 9100
volumes: volumes:
- '/:/host:ro,rslave' - '/:/host:ro,rslave'