8 lines
265 B
SYSTEMD
8 lines
265 B
SYSTEMD
|
[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"
|