Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use new compaction interval metric in compaction failed alert. #293

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Use new compaction interval metric in compaction failed alert.
Signed-off-by: Callum Styan <[email protected]>
  • Loading branch information
cstyan committed Apr 20, 2021
commit 403aa3908ea599d3f608ea4e0ce97a2009dd56fa
3 changes: 2 additions & 1 deletion cortex-mixin/alerts/compactor.libsonnet
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,8 @@
// Alert if compactor fails.
alert: 'CortexCompactorRunFailed',
expr: |||
increase(cortex_compactor_runs_failed_total[2h]) >= 2
(time() - cortex_compactor_last_successful_run_timestamp_seconds) >
(cortex_compactor_compaction_interval_seconds * 2)
|||,
labels: {
severity: 'critical',
Expand Down