Skip to content

Propagate whether query stats is enabled from query-frontend down the request path #3595

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

Merged

Conversation

pracucci
Copy link
Contributor

What this PR does:
In the PR #3539 I've introduced query stats metering support, but it required to enable it both in the query-frontend and querier. I didn't like it very much because I think it's error prone and hard to understand for our users so, in this PR, I've introduced the propagation of the StatsEnabled flag down the request path.

Other than existing integration tests, I've manually tested it both with and without query-scheduler.

Which issue(s) this PR fixes:
N/A

Checklist

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

… request path

Signed-off-by: Marco Pracucci <marco@pracucci.com>
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, great job!

pracucci and others added 2 commits December 14, 2020 10:29
Signed-off-by: Marco Pracucci <marco@pracucci.com>

Co-authored-by: Peter Štibraný <pstibrany@gmail.com>
@pracucci pracucci merged commit 4c9a2af into cortexproject:master Dec 14, 2020
@pracucci pracucci deleted the propagate-stats-enabled-to-querier branch December 14, 2020 09:58
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.

2 participants