I'm getting really confused about this...
"The node_exporter is designed to monitor the host system. It's not recommended to deploy it as Docker container because it requires access to the host system. If you need to run it on Docker, you can deploy this exporter using the
node-exporter Docker image with the following options and bind-mounts"
docker run -d -p 9100:9100 \
-v "/proc:/host/proc:ro" \
-v "/sys:/host/sys:ro" \
-v "/:/rootfs:ro" \
--net="host" \
quay.io/prometheus/node-exporter \
-collector.procfs /host/proc \
-collector.sysfs /host/sys \
-collector.filesystem.ignored-mount-points "^/(sys|proc|dev|host|etc)($|/)"
| nodeexporter: |
| image: prom/node-exporter |
| container_name: nodeexporter |
| restart: unless-stopped |
| expose: |
| - 9100 |
| networks: |
| - monitor-net |
| labels: |
| org.label-schema.group: "monitoring" |
Isn't this supposed to be a reference to node-exporter / Prometheus deploy? Why this isn't following the strict rules from node-exporter repo? Is safe to do this? I mean, will it work like the installation in the host itself? How this is not mounting the volumes and linking the /proc and /sys and still working?
Thanks in advance.