ansible-roles/library/roles/prometheus-node-exporter/templates/node_exporter.systemd.j2

18 lines
401 B
Django/Jinja

[Unit]
Description=node_exporter - Prometheus exporter for machine metrics.
After=network.target
[Service]
Type=simple
Restart=on-failure
User={{ prometheus_n_e_user }}
Group={{ prometheus_n_e_user }}
ExecStart={{ prometheus_n_e_cmd }} {{ prometheus_n_e_opts }} {{ prometheus_n_e_additional_opts }} --collector.systemd
[Install]
WantedBy=multi-user.target
Alias=prometheus_node_exporter.service