ProxMon/systemd/prometheus-export.service
2025-05-23 10:21:07 -04:00

13 lines
503 B
Desktop File

[Unit]
Description=Prometheus Node Exporter
After=network.target # Adjust based on dependencies, if any
[Service]
ExecStart=/home/monitoring/node_exporter/node_exporter --collector.mountstats --no-collector.processes --no-collector.arp --no-collector.nfs --no-collector.nfsd --no-collector.thermal_zone
Restart=always # Restart if the process crashes
RestartSec=5 # Wait 5 seconds before restarting
WorkingDirectory=/home/monitoring/node_exporter
[Install]
WantedBy=multi-user.target