ansible/roles/prometheus-node-exporter/files/prometheus-node-exporter-apt.service

8 lines
265 B
SYSTEMD
Raw Normal View History

2021-09-23 19:59:39 +02:00
[Unit]
Description=Collect apt metrics for prometheus-node-exporter
[Service]
Type=oneshot
Environment=TMPDIR=/var/lib/prometheus/node-exporter
ExecStart=/bin/bash -c "/usr/share/prometheus-node-exporter/apt.sh | sponge /var/lib/prometheus/node-exporter/apt.prom"