Skip to content

Add support to log slow queries in Frontend #1744

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
merged 7 commits into from
Nov 7, 2019

Conversation

achilles42
Copy link
Contributor

@achilles42 achilles42 commented Oct 19, 2019

This PR has a feature to log slow queries in Frontend based on querier.log-queries-longer-than parameter. As per this discussion on issue 1567
cc @gouthamve

@achilles42 achilles42 changed the title Add support of logging slow queries in Frontend [WIP] Add support of logging slow queries in Frontend Oct 19, 2019
@achilles42 achilles42 changed the title [WIP] Add support of logging slow queries in Frontend Add support to log slow queries in Frontend Oct 19, 2019
@khaines khaines self-requested a review October 23, 2019 21:30
Copy link
Contributor

@khaines khaines left a comment

Choose a reason for hiding this comment

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

Hey @achilles42, thank you for the PR! I think it's an important effort to surface slow query details.

I've left a few comments, so please have a look.

@achilles42 achilles42 force-pushed the log-slow-queries branch 2 times, most recently from 66c9569 to 010cd35 Compare October 24, 2019 18:32
Copy link
Contributor

@khaines khaines left a comment

Choose a reason for hiding this comment

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

Thank you @achilles42 LGTM

Copy link
Contributor

@gouthamve gouthamve left a comment

Choose a reason for hiding this comment

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

LGTM after fixes are made!

@gouthamve
Copy link
Contributor

Could you also add a changelog entry?

@achilles42 achilles42 force-pushed the log-slow-queries branch 3 times, most recently from 4d92fec to 67dd154 Compare October 31, 2019 05:33
@achilles42
Copy link
Contributor Author

achilles42 commented Oct 31, 2019

Could you also add a changelog entry?
@gouthamve - Updated the Changelog.

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.

Thanks for the PR! I left few comments which I would be glad you take a look before merging (especially the CLI flag which looks wrong to me).

Signed-off-by: Praveen Shukla <praveen.shukla.c42@gmail.com>
Signed-off-by: Praveen Shukla <praveen.shukla.c42@gmail.com>
Signed-off-by: Praveen Shukla <praveen.shukla.c42@gmail.com>
Signed-off-by: Praveen Shukla <praveen.shukla.c42@gmail.com>
Signed-off-by: Praveen Shukla <praveen.shukla.c42@gmail.com>
Signed-off-by: Praveen Shukla <praveen.shukla.c42@gmail.com>
Signed-off-by: Praveen Shukla <praveen.shukla.c42@gmail.com>
@gouthamve gouthamve merged commit e421794 into cortexproject:master Nov 7, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants