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

Add initial per tenant query and chunk metrics AND RENAME SOME EXISTING METRICS #2463

Merged
merged 3 commits into from
Apr 17, 2020

Conversation

gouthamve
Copy link
Contributor

More will be added once the following is merged:
prometheus/prometheus#6890

The idea is that we now have a ton of QPS and we don't know which tenants are using queries more than others. We want to add the samples/chunks loaded metrics as well so that we can come up with fair usage policy on the read path.

Ideally we'd add latency metrics as well, but the cardinality is just too much.

Signed-off-by: Goutham Veeramachaneni gouthamve@gmail.com

@gouthamve gouthamve marked this pull request as ready for review April 15, 2020 15:23
@pull-request-size pull-request-size bot added size/L and removed size/S labels Apr 15, 2020
@gouthamve gouthamve force-pushed the add-per-user-qps branch 3 times, most recently from 2360f06 to ebba4aa Compare April 15, 2020 15:40
@gouthamve gouthamve changed the title Add initial per tenant query metric Add initial per tenant query and chunk metrics Apr 15, 2020
CHANGELOG.md Show resolved Hide resolved
pkg/chunk/chunk_store.go Outdated Show resolved Hide resolved
pkg/chunk/storage/metrics.go Outdated Show resolved Hide resolved
pkg/querier/queryrange/roundtrip.go Outdated Show resolved Hide resolved
Copy link
Contributor

@codesome codesome left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM with nits

pkg/chunk/storage/metrics.go Show resolved Hide resolved
pkg/chunk/storage/metrics.go Show resolved Hide resolved
pkg/chunk/storage/metrics.go Outdated Show resolved Hide resolved
pkg/chunk/storage/metrics.go Outdated Show resolved Hide resolved
@gouthamve
Copy link
Contributor Author

@pstibrany Thanks for the feedback, I've incorporated most of it. It's ready for another review

Copy link
Contributor

@pracucci pracucci left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good job, LGTM!

pkg/querier/queryrange/roundtrip.go Show resolved Hide resolved
@bboreham bboreham changed the title Add initial per tenant query and chunk metrics Add initial per tenant query and chunk metrics AND RENAME SOME EXISTING METRICS Apr 16, 2020
@bboreham
Copy link
Contributor

Please be really loud when you make breaking changes.

Copy link
Contributor

@pstibrany pstibrany left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM. Please make sure to mention all changed / new metrics in CHANGELOG. (As Marco points out, query_frontend_queries_total is missing).

pkg/chunk/storage/metrics.go Show resolved Hide resolved
More will be added once the following is merged:
prometheus/prometheus#6890

Signed-off-by: Goutham Veeramachaneni <gouthamve@gmail.com>
Signed-off-by: Goutham Veeramachaneni <gouthamve@gmail.com>
Signed-off-by: Goutham Veeramachaneni <gouthamve@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants