Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add helper script to extract timestamps from files #231

Draft
wants to merge 1 commit into
base: master
Choose a base branch
from

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!

path-timestamp.sh Outdated Show resolved Hide resolved
path-timestamp.sh Outdated Show resolved Hide resolved
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!

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