[Unit] Description=Prometheus Node Exporter Documentation=https://github.com/prometheus/node_exporter Wants=network-online.target After=network-online.target [Service] Type=simple User=node_exporter Group=node_exporter ExecStart=/usr/local/bin/node_exporter \ --web.listen-address=0.0.0.0:9100 \ --web.telemetry-path=/metrics \ --collector.systemd \ --collector.processes \ --collector.filesystem.mount-points-exclude='^/(dev|proc|run/credentials/.+|sys|var/lib/docker/.+|var/lib/containers/storage/.+|home/virtfs/.+)($|/)' \ --collector.filesystem.fs-types-exclude='^(autofs|binfmt_misc|bpf|cgroup2?|configfs|debugfs|devpts|devtmpfs|fusectl|hugetlbfs|iso9660|mqueue|nsfs|overlay|proc|procfs|pstore|rpc_pipefs|securityfs|selinuxfs|squashfs|sysfs|tracefs)$' Restart=on-failure RestartSec=5s NoNewPrivileges=true PrivateTmp=true #ProtectHome=true ProtectSystem=strict ProtectControlGroups=true ProtectKernelModules=true ProtectKernelTunables=true ProtectKernelLogs=true LockPersonality=true MemoryDenyWriteExecute=true RestrictRealtime=true RestrictSUIDSGID=true RestrictNamespaces=true SystemCallArchitectures=native [Install] WantedBy=multi-user.target