Browse Source

prometheus add missing service file

Signed-off-by: monitorbuilder_pel7ppc64bebuilder0 <monitorbuilder@powerel.org>
master
monitorbuilder_pel7ppc64bebuilder0 5 years ago
parent
commit
ec68916a3f
  1. 14
      SOURCES/prometheus.service

14
SOURCES/prometheus.service

@ -0,0 +1,14 @@ @@ -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
Loading…
Cancel
Save