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

9 lines
380 B
SYSTEMD
Raw Permalink Normal View History

2021-10-11 13:22:09 +02:00
[Unit]
Description=Collect local x509 certificate metrics for prometheus-node-exporter
[Service]
Type=oneshot
EnvironmentFile=/etc/default/prometheus-node-exporter-local_x509
Environment=TMPDIR=/var/lib/prometheus/node-exporter
ExecStart=/bin/bash -c "/usr/share/prometheus-node-exporter-collectors/local_x509.sh $ARGS | sponge /var/lib/prometheus/node-exporter/local_x509.prom"