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

Alerts: Exclude '/schedulerpb.SchedulerForQuerier/QuerierLoop' route in LokiRequestLatency alert #8138

Merged
merged 2 commits into from
Jan 17, 2023

Conversation

liam-howe-maersk
Copy link
Contributor

@liam-howe-maersk liam-howe-maersk commented Jan 13, 2023

What this PR does / why we need it:
Excludes the route /schedulerpb.SchedulerForQuerier/QuerierLoop from the LokiRequestLatency alert query config. We have found that this route often has extremely high request latencies which will trigger the alert constantly for us. Looking through the source code it seems like it is expected to have high request latencies for this route and so in our configuration have excluded the route. We can see that this route is also being excluded in the respective mimir config so believe it might be relevant to exclude here in loki as well

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

Special notes for your reviewer:

Checklist

  • Reviewed the CONTRIBUTING.md guide (required)
  • Documentation added
  • Tests updated
  • CHANGELOG.md updated
  • Changes that require user attention or interaction to upgrade are documented in docs/sources/upgrading/_index.md

@liam-howe-maersk liam-howe-maersk requested a review from a team as a code owner January 13, 2023 15:36
@CLAassistant
Copy link

CLAassistant commented Jan 13, 2023

CLA assistant check
All committers have signed the CLA.

@grafanabot
Copy link
Collaborator

./tools/diff_coverage.sh ../loki-target-branch/test_results.txt test_results.txt ingester,distributor,querier,querier/queryrange,iter,storage,chunkenc,logql,loki

Change in test coverage per package. Green indicates 0 or positive change, red indicates that test coverage for a package fell.

+           ingester	0%
+        distributor	0%
+            querier	0%
+ querier/queryrange	0%
+               iter	0%
+            storage	0%
+           chunkenc	0%
+              logql	0%
+               loki	0%

@MasslessParticle
Copy link
Contributor

Thanks for your contribution, this looks good!

Can you please run make loki-mixin and commit the changes?

@liam-howe-maersk
Copy link
Contributor Author

Thanks for your contribution, this looks good!

Can you please run make loki-mixin and commit the changes?

Done!

@grafanabot
Copy link
Collaborator

./tools/diff_coverage.sh ../loki-target-branch/test_results.txt test_results.txt ingester,distributor,querier,querier/queryrange,iter,storage,chunkenc,logql,loki

Change in test coverage per package. Green indicates 0 or positive change, red indicates that test coverage for a package fell.

+           ingester	0%
+        distributor	0%
+            querier	0%
+ querier/queryrange	0%
+               iter	0%
+            storage	0%
+           chunkenc	0%
+              logql	0%
+               loki	0%

@MasslessParticle MasslessParticle merged commit 4681f9f into grafana:main Jan 17, 2023
jeschkies pushed a commit to jeschkies/loki that referenced this pull request Jan 18, 2023
…in LokiRequestLatency alert (grafana#8138)

Excludes the route `/schedulerpb.SchedulerForQuerier/QuerierLoop` from
the `LokiRequestLatency` alert query config. We have found that this
route often has extremely high request latencies which will trigger the
alert constantly for us. Looking through the source code it seems like
it is expected to have high request latencies for this route and so in
our configuration have excluded the route. We can see that this route is
also being excluded in the [respective mimir
config](https://github.com/grafana/mimir/blob/main/operations/mimir-mixin-compiled/alerts.yaml#L33)
so believe it might be relevant to exclude here in loki as well
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.

4 participants