-
Notifications
You must be signed in to change notification settings - Fork 2.1k
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 sharded queries metrics #5650
Conversation
050f9ed
to
475db96
Compare
Signed-off-by: idoko <[email protected]>
Signed-off-by: idoko <[email protected]>
This is looking really good. I just wonder if we should make the result a label so that ration calculation can be easier. E.g
|
Agree, let's make it shardable a label and keep one metric only |
Signed-off-by: idoko <[email protected]>
Signed-off-by: idoko <[email protected]>
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.
Nice work, thanks!
We need another rebase. |
1345f91
to
2730fe6
Compare
Signed-off-by: idoko <[email protected]>
Signed-off-by: idoko <[email protected]>
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.
LGTM
* add query sharding metrics Signed-off-by: idoko <[email protected]> * update changelog.md Signed-off-by: idoko <[email protected]> * use CounterVec for sharding metrics Signed-off-by: idoko <[email protected]> * revert to literal value Signed-off-by: idoko <[email protected]> * move changes to unreleased Signed-off-by: idoko <[email protected]> * fix PR number in changelog Signed-off-by: idoko <[email protected]> Signed-off-by: idoko <[email protected]> Signed-off-by: Prakul Jain <[email protected]>
This commit adds basic metrics to track the number of shardable and non-shardable queries processed by
PromQLShardingMiddleware
.Fixes #5606
Changes
Verification
Newly added metrics show up in
http://<query-frontend-address>/metrics