node-exporter-textfile-collector-scripts
node-exporter-textfile-collector-scripts copied to clipboard
add helper script to extract timestamps from files
This is a pretty simple tool, but we've found this useful to check some diagnostics. We've also found alternatives like:
https://github.com/Puppet-Finland/prometheus-file-age-metrics/blob/main/create-file-age-metrics.sh
... which gives you a metric like "out of date files", which didn't like, because the threshold lives in the script instead of the alerting layer (which we prefer).
The closest thing to this is the filestat exporter:
https://github.com/michael-doubez/filestat_exporter
... which provides way more metrics and seems overengineered for our purpose.