Added service files
This commit is contained in:
parent
e899763d66
commit
d0e8f8e379
12
systemd/prometheus-export.service
Normal file
12
systemd/prometheus-export.service
Normal file
@ -0,0 +1,12 @@
|
|||||||
|
[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
|
||||||
12
systemd/proxmon.service
Normal file
12
systemd/proxmon.service
Normal file
@ -0,0 +1,12 @@
|
|||||||
|
[Unit]
|
||||||
|
Description=Proxmox monitor/exporter for Prometheus
|
||||||
|
After=network.target # Adjust based on dependencies, if any
|
||||||
|
|
||||||
|
[Service]
|
||||||
|
ExecStart=/home/monitoring/ProxMon/bin/proxmon 9101
|
||||||
|
Restart=always # Restart if the process crashes
|
||||||
|
RestartSec=5 # Wait 5 seconds before restarting
|
||||||
|
WorkingDirectory=/home/monitoring/ProxMon
|
||||||
|
|
||||||
|
[Install]
|
||||||
|
WantedBy=multi-user.target
|
||||||
Loading…
Reference in New Issue
Block a user