Skip to content

Conversation

anarcat
Copy link
Contributor

@anarcat anarcat commented Jan 9, 2025

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.

@anarcat
Copy link
Contributor Author

anarcat commented Jan 9, 2025

this is a draft because we haven't tested the code yet. @lelutin will deploy this and we'll report back!

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.

Signed-off-by: Antoine Beaupré <[email protected]>
Copy link

@lelutin lelutin left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

@anarcat anarcat marked this pull request as ready for review January 27, 2025 18:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants