-
Notifications
You must be signed in to change notification settings - Fork 12.2k
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
Prometheus: Incremental querying option for to: now
dashboards
#62932
Conversation
…d' into feat/json-query-transformer
@gtk-grafana |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🚀 🚀 🚀
Thanks for the amazing work! @gtk-grafana @leeoniya
Co-authored-by: Leon Sorokin <leeoniya@gmail.com>
public/app/plugins/datasource/prometheus/querycache/QueryCache.ts
Outdated
Show resolved
Hide resolved
to: now
dashboards
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good, great work everybody!
Is there a public version of these documents? Ideally, please attach an ODT copy here. Thanks! :) |
This PR introduces incremental querying to the Prometheus data source.
Design doc
Spec sheet
Incremental querying is being used to refer to a caching/amending concept that can help unify partial queries for Prometheus and Loki (#62767) that works for exemplars as well. This hasn't yet been applied to annotations in this PR, but should also work.
In other words, this makes subsequent dashboard queries much smaller, as we're only querying the duration between each refresh, plus any additional overlap that the user has specified (defaults to 10 minutes).
This PR introduces data source configuration fields that default off, so users will need to opt-in data sources to use this feature, which should be considered in beta.