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

8 lines
265 B
SYSTEMD
Raw Permalink Normal View History

2021-09-23 18:54:06 +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"