Skip to content

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]

yeya24 added 2 commits April 24, 2023 22:00
Signed-off-by: Ben Ye <[email protected]>

enable response size message in processor

Signed-off-by: Ben Ye <[email protected]>
Signed-off-by: Ben Ye <[email protected]>
@yeya24 yeya24 changed the title log final query response size in QFE log query response size in QFE and querier Apr 25, 2023
@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 <[email protected]>

enable response size message in processor

Signed-off-by: Ben Ye <[email protected]>

* fix import

Signed-off-by: Ben Ye <[email protected]>

* remove the response size counter metric

Signed-off-by: Ben Ye <[email protected]>

* update content encoding log

Signed-off-by: Ben Ye <[email protected]>

---------

Signed-off-by: Ben Ye <[email protected]>
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 <[email protected]>

enable response size message in processor

Signed-off-by: Ben Ye <[email protected]>

* fix import

Signed-off-by: Ben Ye <[email protected]>

* remove the response size counter metric

Signed-off-by: Ben Ye <[email protected]>

* update content encoding log

Signed-off-by: Ben Ye <[email protected]>

---------

Signed-off-by: Ben Ye <[email protected]>
Signed-off-by: Alex Le <[email protected]>
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