|
|
|
@ -3,5 +3,13 @@ |
|
|
|
These scripts are examples to be used with the Node Exporter Textfile |
|
|
|
These scripts are examples to be used with the Node Exporter Textfile |
|
|
|
Collector. |
|
|
|
Collector. |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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) |
|
|
|
|
|
|
|
|
|
|
|
For more information see: |
|
|
|
For more information see: |
|
|
|
https://github.com/prometheus/node_exporter#textfile-collector |
|
|
|
https://github.com/prometheus/node_exporter#textfile-collector |
|
|
|
|