Pluggable cron-like prometheus textform metrics generator for node-exporter textfile collector.
Pluggable cron-like prometheus textform metrics generator for node-exporter textfile collector.
\ No newline at end of file
## Use-case
Each node may need to export custom runtime metrics like:
* S.M.A.R.T. disk statistics
* puppet state
* container restarts
* node role
Those metrics are generated by jobs (scripts) and text-file metrics representation is then fed to [Prometheus node-exporter](https://github.com/prometheus/node_exporter) which is able to periodically read text-file metrics using its [textfile collector](https://www.robustperception.io/using-the-textfile-collector-from-a-shell-script).
This approach allows add export custom metrics to node-exporter.
Although every custom metrics may have its dedicated prometheus exporter, [Prometheus node-exporter textfile collector](https://www.robustperception.io/using-the-textfile-collector-from-a-shell-script) approach helps to reduce and maintain reasonable number of prometheus targets.