ansible-ffibk/roles/service-prometheus/templates/node_exporter.service.j2
2017-12-14 19:45:27 +01:00

19 lines
449 B
Django/Jinja

[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
[Install]
WantedBy=multi-user.target