Skip to content

Latest commit

 

History

History
22 lines (16 loc) · 784 Bytes

File metadata and controls

22 lines (16 loc) · 784 Bytes

Textfile Collector Example Scripts

These scripts are examples to be used with the Node Exporter textfile collector.

To use these scripts, we recommend using sponge to atomically write the output.

<collector_script> | sponge <output_file>

Sponge comes from moreutils

Caveat: sponge cannot write atomically if the path specified by the TMPDIR environment variable is not on the same filesystem as the target output file.

For more information see: https://github.com/prometheus/node_exporter#textfile-collector