eole-prometheus/systemd/prometheus.service

13 lines
299 B
SYSTEMD

[Unit]
Description=Prometheus Server
Documentation=https://prometheus.io/docs/introduction/overview/
After=network-online.target
[Service]
User=root
Restart=on-failure
ExecStart=/usr/local/bin/prometheus/prometheus --config.file=/etc/prometheus/prometheus.yml
[Install]
WantedBy=multi-user.target