summaryrefslogtreecommitdiff
path: root/roles/monitoring/prometheus/exporter/node/templates/service.j2
blob: 7aa2834a2055183d692304c9b44397543ec8db61 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
[Unit]
Description=Prometheus node exporter

[Service]
Restart=always
User=prometheus-exporter
ExecStart=/usr/bin/prometheus-node-exporter --web.listen-address="127.0.0.1:9100" --web.disable-exporter-metrics --collector.textfile.directory="/var/lib/prometheus-node-exporter/textfile-collector"{% for collector in prometheus_exporter_node_disable_collectors %} --no-collector.{{ collector }}{% endfor %}{% for collector in prometheus_exporter_node_extra_collectors %} --collector.{{ collector }}{% endfor %}{{ '' }}

[Install]
WantedBy=multi-user.target