Skip to content
Snippets Groups Projects
Commit 4b4d3a20 authored by Ben Kochie's avatar Ben Kochie Committed by Pablo Carranza
Browse files

Adjust TooManyPendingBuildsOnSharedRunnerProject

* Add a minimum 500 pending threshold to avoid small queues from
  causing prediction noise.
* Reduce the time window to 15min to reduce time to detection.
parent 8ea6b98c
No related branches found
No related tags found
1 merge request!251Adjust TooManyPendingBuildsOnSharedRunnerProject
## Pending jobs for projects with shared runners enabled
ALERT TooManyPendingBuildsOnSharedRunnerProject
IF topk(1, predict_linear(ci_pending_builds{shared_runners="yes"}[30m], 3600)) > 1000
IF (ci_pending_builds{shared_runners="yes"} > 500)
and
(topk(1, predict_linear(ci_pending_builds{shared_runners="yes"}[15m], 3600)) > 1000)
FOR 5m
LABELS {severity="warn", channel="ci-cd"}
ANNOTATIONS {
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment