ansible-ffibk/roles/service-prometheus/templates/alertmanager.service.j2
2018-09-18 12:48:06 +02:00

19 lines
474 B
Django/Jinja

[Unit]
Description=Prometheus alertmanager.
After=network.target
[Service]
Type=simple
User={{ prometheus_user }}
Group={{ prometheus_group }}
{% if alertmanager_opts is defined %}
ExecStart={{ alertmanager_daemon_dir }}/alertmanager {{ alertmanager_default_opts }} {{ alertmanager_opts }}
{% else %}
ExecStart={{ alertmanager_daemon_dir }}/alertmanager {{ alertmanager_default_opts }}
{% endif %}
ExecReload=/bin/kill -HUP $MAINPID
[Install]
WantedBy=multi-user.target