-
Notifications
You must be signed in to change notification settings - Fork 3.5k
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
Limit series for metric queries. #2903
Conversation
Signed-off-by: Cyril Tovena <[email protected]>
Signed-off-by: Cyril Tovena <[email protected]>
Signed-off-by: Cyril Tovena <[email protected]>
Signed-off-by: Cyril Tovena <[email protected]>
Signed-off-by: Cyril Tovena <[email protected]>
Signed-off-by: Cyril Tovena <[email protected]>
Signed-off-by: Cyril Tovena <[email protected]>
Codecov Report
@@ Coverage Diff @@
## master #2903 +/- ##
==========================================
+ Coverage 61.58% 61.74% +0.15%
==========================================
Files 181 182 +1
Lines 14714 14759 +45
==========================================
+ Hits 9062 9113 +51
+ Misses 4824 4814 -10
- Partials 828 832 +4
|
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.
Code will need dev review, few lines of doc look good to me.
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.
Few nits, lgtm
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.
the
Co-authored-by: achatterjee-grafana <[email protected]>
Signed-off-by: Cyril Tovena <[email protected]>
Signed-off-by: Cyril Tovena <[email protected]>
Signed-off-by: Cyril Tovena <[email protected]>
…afana#2903) * remove global metrics registry and util.Logger in cache package Signed-off-by: Ben Ye <[email protected]> * address comments and update changelog Signed-off-by: Ben Ye <[email protected]> * use util.Logger instead of noop logger Signed-off-by: Ben Ye <[email protected]> * use nil prometheus registry and address some nits Signed-off-by: Ben Ye <[email protected]>
This adds a new limits: max series returned for metric queries. When a query exceed the maximum of series a 400 will be returned.
It will fail fast, on the first step of the engine (querier) evaluation or the first split of the query-frontend that cross the threshold.
Fixes #2823