prometheus-entrouvert-exporter: buffer output with sponge (#49411)

This commit is contained in:
Christophe Siraut 2020-12-14 15:59:16 +01:00
parent ae46a59410
commit 0ce587c212
2 changed files with 2 additions and 1 deletions

1
debian/control vendored
View File

@ -18,6 +18,7 @@ Description: Documentation for doc-publik.entrouvert.com/guide-de-l-administrate
Package: prometheus-entrouvert-exporter
Architecture: all
Depends: ${misc:Depends},
moreutils,
prometheus-node-exporter,
python3-apt,
python3-cryptography,

View File

@ -3,4 +3,4 @@ Description=Collect Entrouvert metrics
[Service]
Type=oneshot
ExecStart=/bin/bash -c "/usr/bin/prometheus-entrouvert-exporter.py > /var/lib/prometheus/node-exporter/entrouvert.prom"
ExecStart=/bin/bash -c "/usr/bin/prometheus-entrouvert-exporter.py | sponge /var/lib/prometheus/node-exporter/entrouvert.prom"