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

it's possible to add a scheduled monitoring feature to activate file monitoring at a specific time. #32

Open
ilanni2460 opened this issue Mar 28, 2023 · 5 comments
Assignees
Labels
enhancement New feature or request
Milestone

Comments

@ilanni2460
Copy link

ilanni2460 commented Mar 28, 2023

[NEW Feature]
it's possible to add a scheduled monitoring feature to activate file monitoring at a specific time.

@michael-doubez
Copy link
Owner

michael-doubez commented Mar 29, 2023

No. Prometheus and service discovery are the components that are timing the monitoring

@ilanni2460
Copy link
Author

@michael-doubez Thank you very much for your reply, but I found out whether another exporter that monitors sql statements supports timing to grab data.

This is url :
https://github.com/albertodonato/query-exporter

schedule: a schedule for executing queries at specific times. This is expressed as a Cron-like format string (e.g. */5 * * * * to run every five minutes). If a value is specified for schedule, an interval can't be specified. If no value is specified (or specified as null), the query is only executed upon HTTP requests.

I looked at it, and her implementation principle is to capture metrics at a specified time, and the metrics cannot be captured at a non-specified time.

@michael-doubez
Copy link
Owner

Actually, it makes sense in case of a slow NFS by example.

@michael-doubez michael-doubez self-assigned this Feb 15, 2024
@michael-doubez michael-doubez added the enhancement New feature or request label Feb 15, 2024
@michael-doubez michael-doubez added this to the v0.3.8 milestone Feb 15, 2024
@michael-doubez
Copy link
Owner

I've added the tree feature in #42 .
I am planinng on adding a url parameter to metrics collection such that different tree (root) can be polled at different speed.

That way, one can poll /slow/ filesystems with an interval of ~4minutes (with a bigger timeout) while polling other more often.
This is not really what you asked for but keeping cache of metrics is a snake pit.

It you really need to take snapshots, I could add a feature for exporting metrics to a pushgateway.

@ilanni2460
Copy link
Author

@michael-doubez Very good, I have been paying attention to this feature

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants