ansible-ffibk/roles/service-prometheus/templates/node_exporter.service.j2

20 lines
449 B
Text
Raw Normal View History

2017-12-05 05:58:34 +01:00
[Unit]
Description=node_exporter - Prometheus exporter for machine metrics.
After=network.target
[Service]
Type=simple
User={{ prometheus_user }}
Group={{ prometheus_group }}
{% if node_exporter_opts is defined %}
ExecStart={{ node_exporter_daemon_dir }}/node_exporter {{ node_exporter_opts }}
{% else %}
ExecStart={{ node_exporter_daemon_dir }}/node_exporter
{% endif %}
ExecReload=/bin/kill -HUP $MAINPID
2017-12-14 19:45:27 +01:00
[Install]
WantedBy=multi-user.target