From b589212512b6e9d8eb181cd387003864ccd188d7 Mon Sep 17 00:00:00 2001 From: vincent Date: Tue, 17 Apr 2018 17:17:30 +0200 Subject: [PATCH] ajout d'un service systemd pour prometheus --- systemd/prometheus.service | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 systemd/prometheus.service 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