Update rules.yml

This commit is contained in:
Samuel Berthe 2025-05-21 23:04:12 +02:00 committed by GitHub
parent 67cf6892a4
commit 4b1b8242cb
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -2201,7 +2201,7 @@ groups:
- name: Kubernetes CronJob too long
summary: Kubernetes CronJob too long ({{ $labels.namespace }}/{{ $labels.cronjob }})
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
comments: |
Threshold should be customized for each cronjob name.