mirror of
https://gitlab.com/s3lph/ansible-collection-prometheus
synced 2024-11-22 09:41:01 +01:00
9 lines
307 B
Django/Jinja
9 lines
307 B
Django/Jinja
{{ ansible_managed | comment }}
|
|
|
|
[Unit]
|
|
Description=Collect {{ item.key }} metrics for prometheus-node-exporter
|
|
|
|
[Service]
|
|
Type=oneshot
|
|
Environment=TMPDIR=/var/lib/prometheus/node-exporter
|
|
ExecStart=/bin/bash -c "/usr/local/bin/{{ basename }} | sponge /var/lib/prometheus/node-exporter/{{ item.key }}.prom"
|