2016-10-04 08:43:02 +00:00
|
|
|
# Text collector example scripts
|
|
|
|
|
|
|
|
These scripts are examples to be used with the Node Exporter Textfile
|
|
|
|
Collector.
|
|
|
|
|
2018-02-27 18:46:01 +00:00
|
|
|
To use these scripts, we recommend using a `sponge` to atomically write the output.
|
|
|
|
|
|
|
|
<collector_script> | sponge <output_file>
|
|
|
|
|
|
|
|
Sponge comes from [moreutils](https://joeyh.name/code/moreutils/)
|
|
|
|
* [brew install moreutils](http://brewformulas.org/Moreutil)
|
|
|
|
* [apt install moreutils](https://packages.debian.org/search?keywords=moreutils)
|
2018-09-14 12:14:45 +00:00
|
|
|
* [pkg install moreutils](https://www.freshports.org/sysutils/moreutils/)
|
2018-02-27 18:46:01 +00:00
|
|
|
|
2016-10-04 08:43:02 +00:00
|
|
|
For more information see:
|
|
|
|
https://github.com/prometheus/node_exporter#textfile-collector
|