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

QFE: only log slow query, if it is a query endpoint #7843

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

pedro-stanaka
Copy link
Contributor

In Query Frontend we log slow queries, but we don't differ from a call to GET /favicon.ico to a proper query call.
In this PR I am fixing this, by checking that the URL matches one of the Prometheus HTTP API prefixes for query via expression or query of metadata.

  • I added CHANGELOG entry for this change.
  • Change is not relevant to the end user.

Changes

  • Introduced a check for the URL that we are processing, to check if it is a query URL.

@pedro-stanaka pedro-stanaka marked this pull request as ready for review October 18, 2024 15:14
@pedro-stanaka pedro-stanaka force-pushed the fix/qfe-only-log-slow-queries branch 2 times, most recently from 7c3cea7 to ac80d5b Compare October 18, 2024 20:53
Signed-off-by: Pedro Tanaka <pedro.tanaka@shopify.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.

2 participants