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

Commit 01b8542

Browse files
committed
Added alert for failed compator run.
1 parent 1a59317 commit 01b8542

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

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[10m]) > 0
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)