Skip to content

Commit 901a699

Browse files
author
Tyler Reid
committed
add rule for critical distributor inflight push request alert
1 parent 567320d commit 901a699

File tree

2 files changed

+27
-0
lines changed

2 files changed

+27
-0
lines changed

cortex-mixin/alerts/alerts.libsonnet

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -352,6 +352,30 @@
352352
},
353353
],
354354
},
355+
{
356+
name: 'cortex_distributor_inflight_push_request_alert',
357+
rules: [
358+
{
359+
alert: 'CortexDistributorReachingInflightPushRequestLimits',
360+
expr: |||
361+
(
362+
(cortex_distributor_inflight_push_requests / ignoring(limit) cortex_distributor_instance_limits{limit="max_inflight_push_requests"})
363+
and ignoring (limit)
364+
(cortex_distributor_instance_limits{limit="max_inflight_push_requests"} > 0)
365+
) > 0.9
366+
|||,
367+
'for': '5m',
368+
labels: {
369+
severity: 'critical',
370+
},
371+
annotations: {
372+
message: |||
373+
Distributor {{ $labels.job }}/{{ $labels.instance }} has reached {{ $value | humanizePercentage }} of its series limit.
374+
|||,
375+
},
376+
},
377+
],
378+
},
355379
{
356380
name: 'cortex_wal_alerts',
357381
rules: [

cortex-mixin/docs/playbooks.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -108,6 +108,9 @@ How to **fix**:
108108
1. Ensure shuffle-sharding is enabled in the Cortex cluster
109109
1. Assuming shuffle-sharding is enabled, scaling up ingesters will lower the number of tenants per ingester. However, the effect of this change will be visible only after `-blocks-storage.tsdb.close-idle-tsdb-timeout` period so you may have to temporarily increase the limit
110110
111+
### CortexDistributorReachingInflightPushRequestLimits
112+
_TODO: this playbook has not been written yet._
113+
111114
### CortexRequestLatency
112115
113116
This alert fires when a specific Cortex route is experiencing an high latency.

0 commit comments

Comments
 (0)