Untitled

mail@pastecode.io avatar
unknown
plain_text
a year ago
581 B
2
Indexable
Never
version: "3.9"

services:
  node-exporter:
   image: prom/node-exporter
   volumes:
    - /proc:/host/proc:ro
    - /sys:/host/sys:ro
    - /:/rootfs:ro
   command:
    - --path.procfs=/host/proc
    - --path.sysfs=/host/sys
    - --collector.filesystem.ignored-mount-points
    -^/(sys|proc|dev|host|etc|rootfs/var/lib/docker/containers|rootfs/var/lib/docker/overlay2|rootfs/run/docker/netns|rootfs/var/lib/docker/aufs)($$>
   ports:
    - "9100:9100"
   environment:
    TZ: "Europe/Moscow"
   deploy:
    mode: global
    placement:
     constraints: [node.platform.os == Linux]