aboutsummaryrefslogtreecommitdiffstats
path: root/contrib
diff options
context:
space:
mode:
authorMartin/Geno <geno+dev@fireorbit.de>2019-10-17 07:26:26 +0200
committerMartin/Geno <geno+dev@fireorbit.de>2019-10-17 07:26:26 +0200
commite3d69af688d487013c63b87e9ba9744650b5b729 (patch)
treeb65826a80d4eb6535a812cf93a3d6e4d17923d2e /contrib
parent9877bdf22b362c5b6c18a32ee3d1a4d93d6103f0 (diff)
systemd prometheus service
Diffstat (limited to 'contrib')
-rw-r--r--contrib/init/linux-systemd/ejabberd-exporter.service14
1 files changed, 14 insertions, 0 deletions
diff --git a/contrib/init/linux-systemd/ejabberd-exporter.service b/contrib/init/linux-systemd/ejabberd-exporter.service
new file mode 100644
index 0000000..518fc1d
--- /dev/null
+++ b/contrib/init/linux-systemd/ejabberd-exporter.service
@@ -0,0 +1,14 @@
+[Unit]
+Description=ejabberd prometheus exporter
+
+[Service]
+Type=simple
+User=nobody
+User=group
+ExecStart=/opt/ejabberd-metrics/prometheus.py
+Restart=always
+RestartSec=5s
+Environment=PATH=/usr/bin:/usr/local/bin
+
+[Install]
+WantedBy=multi-user.target