aboutsummaryrefslogtreecommitdiff
path: root/prometheus-haproxy-log-exporter.service
diff options
context:
space:
mode:
Diffstat (limited to 'prometheus-haproxy-log-exporter.service')
-rw-r--r--prometheus-haproxy-log-exporter.service13
1 files changed, 13 insertions, 0 deletions
diff --git a/prometheus-haproxy-log-exporter.service b/prometheus-haproxy-log-exporter.service
new file mode 100644
index 0000000..4ceda7a
--- /dev/null
+++ b/prometheus-haproxy-log-exporter.service
@@ -0,0 +1,13 @@
+[Unit]
+Description=Expose data from HAProxy for collection by Prometheus
+BindsTo=haproxy.service
+After=haproxy.service
+
+[Service]
+User=nobody
+Group=systemd-journal
+Environment='LICENCE_LOCATION=/usr/share/doc/prometheus-haproxy-log-exporter/copyright'
+ExecStart=/usr/bin/prometheus-haproxy-log-exporter --journal
+
+[Install]
+WantedBy=haproxy.service