node_exporter: Fix textfile collector script

This commit is contained in:
Timo Makinen 2025-04-27 13:55:47 +00:00
parent 3c0e1c2a9f
commit 5b6b7af580

View file

@ -28,7 +28,7 @@ fi
for script in /usr/local/libexec/node-exporter/*; do
[ -x "$script" ] || continue
"$VERBOSE" && echo "Processing script '${script}'"
target="${OUTDIR}/$(basename "$script")"
target="${OUTDIR}/$(basename "$script").prom"
tmpfile="$(mktemp -p "$OUTDIR")"
if "$script" > "$tmpfile" ; then
"$VERBOSE" && echo " Success, updating stats"