diff --git a/systemd/prometheus.service b/systemd/prometheus.service new file mode 100644 index 0000000..38352c0 --- /dev/null +++ b/systemd/prometheus.service @@ -0,0 +1,12 @@ +[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