Skip to content
This repository was archived by the owner on Apr 28, 2025. It is now read-only.

Commit b3d8a89

Browse files
authored
Merge pull request #231 from grafana/fix-request-error-alert
Fixed CortexRequestErrors alert to not include ready route
2 parents 7a64b1b + ee86f24 commit b3d8a89

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@
1515
- Cortex / Compactor: added "Tenants compaction progress", "Average blocks / tenant" and "Tenants with largest number of blocks"
1616
- Alerts: added "CortexMemoryMapAreasTooHigh"
1717
* [BUGFIX] Fixed workingset memory panel while rolling out a StatefulSet. #229
18+
* [BUGFIX] Fixed `CortexRequestErrors` alert to not include `ready` route. #230
1819

1920
## 1.5.0 / 2020-11-12
2021

cortex-mixin/alerts/alerts.libsonnet

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,9 +21,9 @@
2121
// Note is alert_aggregation_labels is "job", this will repeat the label. But
2222
// prometheus seems to tolerate that.
2323
expr: |||
24-
100 * sum by (%s, job, route) (rate(cortex_request_duration_seconds_count{status_code=~"5.."}[1m]))
24+
100 * sum by (%s, job, route) (rate(cortex_request_duration_seconds_count{status_code=~"5..",route!~"ready"}[1m]))
2525
/
26-
sum by (%s, job, route) (rate(cortex_request_duration_seconds_count[1m]))
26+
sum by (%s, job, route) (rate(cortex_request_duration_seconds_count{route!~"ready"}[1m]))
2727
> 1
2828
||| % [$._config.alert_aggregation_labels, $._config.alert_aggregation_labels],
2929
'for': '15m',
@@ -39,7 +39,7 @@
3939
{
4040
alert: 'CortexRequestLatency',
4141
expr: |||
42-
cluster_namespace_job_route:cortex_request_duration_seconds:99quantile{route!~"metrics|/frontend.Frontend/Process"}
42+
cluster_namespace_job_route:cortex_request_duration_seconds:99quantile{route!~"metrics|/frontend.Frontend/Process|ready"}
4343
>
4444
%(cortex_p99_latency_threshold_seconds)s
4545
||| % $._config,

0 commit comments

Comments
 (0)