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

Commit 3eb2d42

Browse files
authored
Merge pull request #206 from grafana/compactor-alert
Added alert for failed compator run.
2 parents 4f603c7 + 2c29f32 commit 3eb2d42

File tree

2 files changed

+16
-0
lines changed

2 files changed

+16
-0
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@
1111
* [ENHANCEMENT] Add the Ruler to the read resources dashboard #205
1212
* [ENHANCEMENT] Read dashboards now use `cortex_querier_request_duration_seconds` metrics to allow for accurate dashboards when deploying Cortex as a single-binary. #199
1313
* [ENHANCEMENT] Improved Ruler dashboard. Includes information about notifications, reads/writes, and per user per rule group evaluation. #197, #205
14+
* [ENHANCEMENT] Add new `CortexCompactorRunFailed` alert when compactor run fails. #206
1415
* [ENHANCEMENT] Add `flusher-job-blocks.libsonnet` with support for flushing blocks disks. #187
1516
* [ENHANCEMENT] Add more alerts on failure conditions for ingesters when running the blocks storage. #208
1617
* [FEATURE] Latency recording rules for the metric`cortex_querier_request_duration_seconds` are now part of a `cortex_querier_api` rule group. #199

cortex-mixin/alerts/compactor.libsonnet

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,21 @@
6363
message: 'Cortex Compactor {{ $labels.namespace }}/{{ $labels.instance }} has not uploaded any block in the last 24 hours.',
6464
},
6565
},
66+
{
67+
// Alert if compactor fails.
68+
alert: 'CortexCompactorRunFailed',
69+
expr: |||
70+
increase(cortex_compactor_runs_failed_total[2h]) > 1
71+
|||,
72+
labels: {
73+
severity: 'warning',
74+
},
75+
annotations: {
76+
message: |||
77+
{{ $labels.job }}/{{ $labels.instance }} failed to run compaction.
78+
|||,
79+
},
80+
},
6681
],
6782
},
6883
],

0 commit comments

Comments
 (0)