From ec68916a3faa3264b59101a83a69df2c486573b6 Mon Sep 17 00:00:00 2001 From: monitorbuilder_pel7ppc64bebuilder0 Date: Thu, 21 Nov 2019 14:28:25 +0100 Subject: [PATCH] prometheus add missing service file Signed-off-by: monitorbuilder_pel7ppc64bebuilder0 --- SOURCES/prometheus.service | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 SOURCES/prometheus.service 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