3ca212f55e
We use the output-compatible perccli and storcli.py does not handle 'Unknown' as a result: ``` sg="Error parsing \"/var/lib/node_exporter/perccli.prom\": text format parsing error in line 222: expected float as value, got \"Unknown\"" source="textfile.go:212" ``` I know, the perccli should not return 'Unknown' but this error breaks all other useful measurements because the prom file is not parsable. My if condition fixes this. Signed-off-by: Andreas Wirooks <4233401+nudgegoonies@users.noreply.github.com> Signed-off-by: Ben Kochie <superq@gmail.com> |
||
---|---|---|
.. | ||
README.md | ||
apt.sh | ||
deleted_libraries.py | ||
directory-size.sh | ||
ipmitool | ||
md_info.sh | ||
ntpd_metrics.py | ||
smartmon.sh | ||
storcli.py |
README.md
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
For more information see: https://github.com/prometheus/node_exporter#textfile-collector