ocp_monitoring: fix cronjob alert rule
This commit is contained in:
parent
d0704659a7
commit
953f2e5c4a
1 changed files with 1 additions and 1 deletions
|
@ -13,7 +13,7 @@ spec:
|
||||||
annotations:
|
annotations:
|
||||||
description: Latest execution of CronJob {{$labels.namespace}}/{{$labels.cronjob}} failed to complete.
|
description: Latest execution of CronJob {{$labels.namespace}}/{{$labels.cronjob}} failed to complete.
|
||||||
summary: Latest job {{$labels.cronjob}} has failed.
|
summary: Latest job {{$labels.cronjob}} has failed.
|
||||||
expr: kube_cronjob_status_last_schedule_time - kube_cronjob_status_last_successful_time > 0
|
expr: (kube_cronjob_status_last_schedule_time - kube_cronjob_status_last_successful_time) * (1 - kube_cronjob_status_active) > 0
|
||||||
for: 5m
|
for: 5m
|
||||||
labels:
|
labels:
|
||||||
severity: warning
|
severity: warning
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue