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

log query response size in QFE and querier #5288

Merged
merged 4 commits into from
Apr 25, 2023

Conversation

yeya24
Copy link
Contributor

@yeya24 yeya24 commented Apr 25, 2023

What this PR does:

Log query response size in query frontend query stats log.

Also I added a line of log to log the response size and http status code in querier. This is helpful to track whether a user's response has went beyond the max response body size.

Which issue(s) this PR fixes:
Fixes #

Checklist

  • Tests updated
  • Documentation added
  • CHANGELOG.md updated - the order of entries should be [CHANGE], [FEATURE], [ENHANCEMENT], [BUGFIX]

Signed-off-by: Ben Ye <benye@amazon.com>

enable response size message in processor

Signed-off-by: Ben Ye <benye@amazon.com>
Signed-off-by: Ben Ye <benye@amazon.com>
@yeya24 yeya24 changed the title log final query response size in QFE log query response size in QFE and querier Apr 25, 2023
Signed-off-by: Ben Ye <benye@amazon.com>
Signed-off-by: Ben Ye <benye@amazon.com>
@yeya24 yeya24 merged commit 7e37e92 into cortexproject:master Apr 25, 2023
@yeya24 yeya24 deleted the log-response-size branch April 25, 2023 19:58
yeya24 added a commit to yeya24/cortex that referenced this pull request Apr 28, 2023
* log final query response size in QFE

Signed-off-by: Ben Ye <benye@amazon.com>

enable response size message in processor

Signed-off-by: Ben Ye <benye@amazon.com>

* fix import

Signed-off-by: Ben Ye <benye@amazon.com>

* remove the response size counter metric

Signed-off-by: Ben Ye <benye@amazon.com>

* update content encoding log

Signed-off-by: Ben Ye <benye@amazon.com>

---------

Signed-off-by: Ben Ye <benye@amazon.com>
alexqyle pushed a commit to alexqyle/cortex that referenced this pull request May 2, 2023
* log final query response size in QFE

Signed-off-by: Ben Ye <benye@amazon.com>

enable response size message in processor

Signed-off-by: Ben Ye <benye@amazon.com>

* fix import

Signed-off-by: Ben Ye <benye@amazon.com>

* remove the response size counter metric

Signed-off-by: Ben Ye <benye@amazon.com>

* update content encoding log

Signed-off-by: Ben Ye <benye@amazon.com>

---------

Signed-off-by: Ben Ye <benye@amazon.com>
Signed-off-by: Alex Le <leqiyue@amazon.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.

3 participants