mirror of
https://github.com/samber/awesome-prometheus-alerts.git
synced 2026-06-26 03:17:07 +08:00
Update rules.yml
This commit is contained in:
parent
67cf6892a4
commit
4b1b8242cb
1 changed files with 1 additions and 1 deletions
|
|
@ -2201,7 +2201,7 @@ groups:
|
||||||
- name: Kubernetes CronJob too long
|
- name: Kubernetes CronJob too long
|
||||||
summary: Kubernetes CronJob too long ({{ $labels.namespace }}/{{ $labels.cronjob }})
|
summary: Kubernetes CronJob too long ({{ $labels.namespace }}/{{ $labels.cronjob }})
|
||||||
description: CronJob {{ $labels.namespace }}/{{ $labels.cronjob }} is taking more than 1h to complete.
|
description: CronJob {{ $labels.namespace }}/{{ $labels.cronjob }} is taking more than 1h to complete.
|
||||||
query: "time() - kube_cronjob_next_schedule_time > 3600"
|
query: "kube_job_status_start_time > 0 and absent(kube_job_status_completion_time) and (time() - kube_job_status_start_time) > 3600"
|
||||||
severity: warning
|
severity: warning
|
||||||
comments: |
|
comments: |
|
||||||
Threshold should be customized for each cronjob name.
|
Threshold should be customized for each cronjob name.
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue