fix: add space for labels KubernetesJobFailed alert rule (#321)

Co-authored-by: xb4dc0d3
This commit is contained in:
michaelact 2022-11-30 18:28:23 +07:00 committed by GitHub
parent ebab149c50
commit 4466a07962
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1646,7 +1646,7 @@ groups:
query: '(kube_pod_container_status_restarts_total - kube_pod_container_status_restarts_total offset 10m >= 1) and ignoring (reason) min_over_time(kube_pod_container_status_last_terminated_reason{reason="OOMKilled"}[10m]) == 1'
severity: warning
- name: Kubernetes Job failed
description: "Job {{$labels.namespace}}/{{$labels.exported_job}} failed to complete"
description: "Job {{ $labels.namespace }}/{{ $labels.exported_job }} failed to complete"
query: 'kube_job_status_failed > 0'
severity: warning
- name: Kubernetes CronJob suspended