aboutsummaryrefslogtreecommitdiff
path: root/prometheus-haproxy-log-exporter.service
diff options
context:
space:
mode:
authorChristopher Baines <chris@lucida.cbaines.net>2015-12-24 10:59:02 +0000
committerChristopher Baines <mail@cbaines.net>2016-02-23 23:00:55 +0000
commit5bcf65dcff75a01a90b688626d97735372b594e2 (patch)
tree617016a92505090cc830ae8844169933a06ff56e /prometheus-haproxy-log-exporter.service
downloadprometheus-haproxy-log-exporter-5bcf65dcff75a01a90b688626d97735372b594e2.tar
prometheus-haproxy-log-exporter-5bcf65dcff75a01a90b688626d97735372b594e2.tar.gz
Initial commit
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