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

Commit addbf67

Browse files
gouthamvepracucci
andcommitted
Apply suggestions from code review
Co-authored-by: Marco Pracucci <[email protected]> Signed-off-by: Goutham Veeramachaneni <[email protected]>
1 parent 4fe3501 commit addbf67

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

cortex-mixin/alerts/compactor.libsonnet

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,17 +4,17 @@
44
name: 'cortex_compactor_alerts',
55
rules: [
66
{
7-
// Alert if the compactor has not successfully cleaned up blocks in the last 24h.
7+
// Alert if the compactor has not successfully cleaned up blocks in the last 6h.
88
alert: 'CortexCompactorHasNotSuccessfullyCleanedUpBlocks',
99
'for': '1h',
1010
expr: |||
11-
(time() - cortex_compactor_block_cleanup_last_successful_run_timestamp_seconds > 60 * 60 * 24)
11+
(time() - cortex_compactor_block_cleanup_last_successful_run_timestamp_seconds > 60 * 60 * 6)
1212
|||,
1313
labels: {
1414
severity: 'critical',
1515
},
1616
annotations: {
17-
message: 'Cortex Compactor {{ $labels.namespace }}/{{ $labels.instance }} has not successfully cleaned up blocks in the last 24 hours.',
17+
message: 'Cortex Compactor {{ $labels.namespace }}/{{ $labels.instance }} has not successfully cleaned up blocks in the last 6 hours.',
1818
},
1919
},
2020
{

0 commit comments

Comments
 (0)