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

20 lines
514 B
Text
Raw Permalink 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_default_opts }} {{ node_exporter_opts }}
2017-12-05 05:58:34 +01:00
{% else %}
ExecStart={{ node_exporter_daemon_dir }}/node_exporter {{ node_exporter_default_opts }}
2017-12-05 05:58:34 +01:00
{% endif %}
ExecReload=/bin/kill -HUP $MAINPID
2017-12-14 19:45:27 +01:00
[Install]
WantedBy=multi-user.target