ansible-ffibk/roles/service-prometheus/templates/blackbox_exporter.service.j2
2018-09-25 10:36:23 +02:00

19 lines
528 B
Django/Jinja

[Unit]
Description=blackbox_exporter - Prometheus blackbox prober exporter.
After=network.target
[Service]
Type=simple
User={{ prometheus_user }}
Group={{ prometheus_group }}
{% if blackbox_exporter_opts is defined %}
ExecStart={{ blackbox_exporter_daemon_dir }}/blackbox_exporter {{ blackbox_default_opts }} {{ blackbox_exporter_opts }}
{% else %}
ExecStart={{ blackbox_exporter_daemon_dir }}/blackbox_exporter {{ blackbox_default_opts }}
{% endif %}
ExecReload=/bin/kill -HUP $MAINPID
[Install]
WantedBy=multi-user.target