1
0
Fork 0
mirror of https://gitlab.com/s3lph/ansible-collection-prometheus synced 2024-10-23 11:56:59 +02:00
ansible-collection-prometheus/roles/prometheus_node/templates/prometheus-collector.service.j2

10 lines
307 B
Text
Raw Normal View History

2020-11-13 10:36:46 +01:00
{{ 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"