ansible-roles/library/roles/prometheus-haproxy-exporter/templates/haproxy_exporter.systemd.j2

18 lines
397 B
Django/Jinja

[Unit]
Description=haproxy_exporter - Prometheus exporter for haproxy metrics and stats.
After=network.target
[Service]
Type=simple
Restart=on-failure
User={{ prometheus_h_e_user }}
Group={{ prometheus_h_e_user }}
ExecStart={{ prometheus_h_e_cmd }} {{ prometheus_h_e_opts }} {{ prometheus_h_e_additional_opts }}
[Install]
WantedBy=multi-user.target
Alias=prometheus_haproxy_exporter.service