formula-prometheus-ng/prometheus/files/haproxy_exporter.systemd.jinja
2016-12-12 17:45:30 +00:00

18 lines
413 B
Django/Jinja

[Unit]
Description=Prometheus haproxy exporter
Documentation=https://github.com/prometheus/haproxy_exporter
Wants=basic.target
After=basic.target network.target
[Service]
User=prometheus
Group=prometheus
EnvironmentFile=/etc/default/haproxy_exporter
ExecStart=/usr/bin/haproxy_exporter $ARGS
ExecReload=/bin/kill -HUP $MAINPID
KillMode=process
Restart=always
RestartSec=42s
[Install]
WantedBy=multi-user.target