diff --git a/SOURCES/prometheus.service b/SOURCES/prometheus.service new file mode 100644 index 0000000..0990b1f --- /dev/null +++ b/SOURCES/prometheus.service @@ -0,0 +1,14 @@ +[Unit] +Description=Prometheus Server +Documentation=https://prometheus.io/docs/introduction/overview/ +After=network-online.target + +[Service] +User=prometheus +Restart=on-failure +ExecStart=/usr/bin/prometheus \ + -config.file=/etc/prometheus/prometheus.yml \ + -storage.local.path=/var/lib/prometheus/ + +[Install] +WantedBy=multi-user.target