From 6fd1fcb08021b4a9f1e2dcdd9b0816ff0cc226bd Mon Sep 17 00:00:00 2001 From: Franco <48300215+fhielpos@users.noreply.github.com> Date: Mon, 29 Apr 2024 09:06:36 +0200 Subject: [PATCH] Remove Kyverno AdmissionReportsTooHigh alert (#1145) --- .../alerting-rules/kyverno.all.rules.yml | 15 --------------- .../global/kyverno.all.rules.test.yml | 18 ------------------ 2 files changed, 33 deletions(-) diff --git a/helm/prometheus-rules/templates/alerting-rules/kyverno.all.rules.yml b/helm/prometheus-rules/templates/alerting-rules/kyverno.all.rules.yml index 7557182c4..6c210dc6c 100644 --- a/helm/prometheus-rules/templates/alerting-rules/kyverno.all.rules.yml +++ b/helm/prometheus-rules/templates/alerting-rules/kyverno.all.rules.yml @@ -27,21 +27,6 @@ spec: topic: kyverno - name: resources rules: - - alert: KyvernoAdmissionReportCountTooHigh - annotations: - description: "{{`Kyverno {{ $labels.kind }} are too high. This is an indicator that Kyverno\'s report processing may not be keeping up with cluster demand.`}}" - opsrecipe: kyverno-reports/ - expr: aggregation:kyverno_resource_counts{kind=~"(clusteradmissionreports|admissionreports).kyverno.io"} > 50000 - for: 15m - labels: - area: managedservices - cancel_if_cluster_status_creating: "true" - cancel_if_cluster_status_deleting: "true" - cancel_if_cluster_status_updating: "true" - cancel_if_outside_working_hours: {{ include "workingHoursOnly" . }} - severity: page - team: shield - topic: kyverno - alert: KyvernoUpdateRequestsCountTooHigh annotations: description: "{{`Kyverno {{ $labels.kind }} are too high. This is an indicator that Kyverno's background controller may not be able to create some resources.`}}" diff --git a/test/tests/providers/global/kyverno.all.rules.test.yml b/test/tests/providers/global/kyverno.all.rules.test.yml index b5044d4a2..f2ae22d3d 100644 --- a/test/tests/providers/global/kyverno.all.rules.test.yml +++ b/test/tests/providers/global/kyverno.all.rules.test.yml @@ -42,24 +42,6 @@ tests: description: "Kyverno has no available replicas but webhooks are present." opsrecipe: "kyverno-webhooks/" # Kyverno reports too high alert - - alertname: KyvernoAdmissionReportCountTooHigh - eval_time: 60m - exp_alerts: - - exp_labels: - area: managedservices - cluster_id: gremlin - severity: page - team: shield - topic: kyverno - cancel_if_cluster_status_creating: "true" - cancel_if_cluster_status_deleting: "true" - cancel_if_cluster_status_updating: "true" - cancel_if_outside_working_hours: "false" - kind: "admissionreports.kyverno.io" - exp_annotations: - description: "Kyverno admissionreports.kyverno.io are too high. This is an indicator that Kyverno's report processing may not be keeping up with cluster demand." - opsrecipe: "kyverno-reports/" - # Kyverno reports too high alert - alertname: KyvernoUpdateRequestsCountTooHigh eval_time: 45m exp_alerts: