mirror of
https://github.com/prometheus/node_exporter.git
synced 2024-12-22 16:36:07 +01:00
b46cd80200
Signed-off-by: Mateusz Piotrowski <0mp@FreeBSD.org>
17 lines
627 B
Markdown
17 lines
627 B
Markdown
# Text collector example scripts
|
|
|
|
These scripts are examples to be used with the Node Exporter Textfile
|
|
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)
|
|
* [pkg install moreutils](https://www.freshports.org/sysutils/moreutils/)
|
|
|
|
For more information see:
|
|
https://github.com/prometheus/node_exporter#textfile-collector
|