-
-
Notifications
You must be signed in to change notification settings - Fork 94
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
Move default scraping interval to metrics configuration #259
Comments
I'll take this one too as part of the scraping interval stuff i'm doing |
@tomkerkhove right now we use the Initial thought: In any event, if my thoughts above are kosher, it seems like we need to choose a "minimum granularity" for our metrics and that's what Thoughts? |
@brandonh-msft I was rather thinking to schedule an instance of This would allow us to:
I quickly POCed this approach before and it works, but I didn't check if they run sequentially or in parallel. If it doesn't, I'm even wondering if this is something we can contribute back to CronScheduler.AspNetCore. As of today, I don't really care about configs changing as that's a "change" for me and they should either redeploy or restart the scraper. What do you think of this approach @brandonh-msft? |
Re-opening as we've only covered configuration, not how we scrape |
Makes sense and just so I understand this would involve:
Those two pieces together, I think, would enable the approach you're talking about, yes? |
Yes and some refactoring of the internal scraper given it doesn't need to query all metrics anymore. We already have a dependency on Cronos which should be able to help you! |
@tomkerkhove it doesn't seem like these things are functionally equivalent; i.e. I'm not seeing how one could create a Timespan -> Cron Expression converter given the purpose of Cron is to schedule things and TimeSpan is merely to denote a span of time. This said, today we schedule via Cron; it seems to me that |
Perfect idea, like it @brandonh-msft 👍 |
Currently, we configure the scraping interval via the `` environment variable. This approach is deprecated and moved to scraping configuration.
With #258 this can be configured per metric and should be used over this value.
Checklist
In order to achieve this we will:
Metrics Specification
The text was updated successfully, but these errors were encountered: