From dc0036ee89a2f21c07e9ec3b5b350f6cdc153749 Mon Sep 17 00:00:00 2001 From: Jakub Stejskal Date: Thu, 28 Mar 2024 17:44:19 +0100 Subject: [PATCH] Add alerts for KRaft components, remove canary alerts Signed-off-by: Jakub Stejskal --- ...imzi-alerts-cluster-operator-kraft.yaml.j2 | 27 +++++++++++++++++++ ....j2 => strimzi-alerts-kafka-kraft.yaml.j2} | 6 ++--- .../strimzi-alerts-kafka-mm2-kraft.yaml.j2 | 27 +++++++++++++++++++ .../strimzi-alerts-kafka-mm2.yaml.j2 | 27 +++++++++++++++++++ 4 files changed, 84 insertions(+), 3 deletions(-) create mode 100644 install/roles/automation-hub/templates/argo/applications/monitoring/alerts/worker-01/strimzi-alerts-cluster-operator-kraft.yaml.j2 rename install/roles/automation-hub/templates/argo/applications/monitoring/alerts/worker-01/{strimzi-alerts-canary.yaml.j2 => strimzi-alerts-kafka-kraft.yaml.j2} (80%) create mode 100644 install/roles/automation-hub/templates/argo/applications/monitoring/alerts/worker-01/strimzi-alerts-kafka-mm2-kraft.yaml.j2 create mode 100644 install/roles/automation-hub/templates/argo/applications/monitoring/alerts/worker-01/strimzi-alerts-kafka-mm2.yaml.j2 diff --git a/install/roles/automation-hub/templates/argo/applications/monitoring/alerts/worker-01/strimzi-alerts-cluster-operator-kraft.yaml.j2 b/install/roles/automation-hub/templates/argo/applications/monitoring/alerts/worker-01/strimzi-alerts-cluster-operator-kraft.yaml.j2 new file mode 100644 index 00000000..1202ea7f --- /dev/null +++ b/install/roles/automation-hub/templates/argo/applications/monitoring/alerts/worker-01/strimzi-alerts-cluster-operator-kraft.yaml.j2 @@ -0,0 +1,27 @@ +apiVersion: argoproj.io/v1alpha1 +kind: Application +metadata: + name: strimzi-alerts-cluster-operator-kraft-{{ cluster }} + labels: + project: skodjob + app: strimzi +spec: + project: monitoring + source: + repoURL: https://github.com/skodjob/deployment-hub + targetRevision: HEAD + path: metrics/alerts/strimzi-operator + directory: + recurse: true + syncPolicy: + automated: + prune: true + selfHeal: true + syncOptions: + - CreateNamespace=false + managedNamespaceMetadata: + labels: + project: skodjob + destination: + name: {{ cluster }} + namespace: strimzi-operator-kraft diff --git a/install/roles/automation-hub/templates/argo/applications/monitoring/alerts/worker-01/strimzi-alerts-canary.yaml.j2 b/install/roles/automation-hub/templates/argo/applications/monitoring/alerts/worker-01/strimzi-alerts-kafka-kraft.yaml.j2 similarity index 80% rename from install/roles/automation-hub/templates/argo/applications/monitoring/alerts/worker-01/strimzi-alerts-canary.yaml.j2 rename to install/roles/automation-hub/templates/argo/applications/monitoring/alerts/worker-01/strimzi-alerts-kafka-kraft.yaml.j2 index 02a7efaa..8cc0216f 100644 --- a/install/roles/automation-hub/templates/argo/applications/monitoring/alerts/worker-01/strimzi-alerts-canary.yaml.j2 +++ b/install/roles/automation-hub/templates/argo/applications/monitoring/alerts/worker-01/strimzi-alerts-kafka-kraft.yaml.j2 @@ -1,7 +1,7 @@ apiVersion: argoproj.io/v1alpha1 kind: Application metadata: - name: strimzi-alerts-canary-{{ cluster }} + name: strimzi-alerts-kafka-kraft-{{ cluster }} labels: project: skodjob app: strimzi @@ -10,7 +10,7 @@ spec: source: repoURL: https://github.com/skodjob/deployment-hub targetRevision: HEAD - path: metrics/alerts/canary + path: metrics/alerts/kafka directory: recurse: true syncPolicy: @@ -24,4 +24,4 @@ spec: project: skodjob destination: name: {{ cluster }} - namespace: strimzi-kafka + namespace: strimzi-kafka-kraft diff --git a/install/roles/automation-hub/templates/argo/applications/monitoring/alerts/worker-01/strimzi-alerts-kafka-mm2-kraft.yaml.j2 b/install/roles/automation-hub/templates/argo/applications/monitoring/alerts/worker-01/strimzi-alerts-kafka-mm2-kraft.yaml.j2 new file mode 100644 index 00000000..cb3aa96d --- /dev/null +++ b/install/roles/automation-hub/templates/argo/applications/monitoring/alerts/worker-01/strimzi-alerts-kafka-mm2-kraft.yaml.j2 @@ -0,0 +1,27 @@ +apiVersion: argoproj.io/v1alpha1 +kind: Application +metadata: + name: strimzi-alerts-kafka-mm2-kraft-{{ cluster }} + labels: + project: skodjob + app: strimzi +spec: + project: monitoring + source: + repoURL: https://github.com/skodjob/deployment-hub + targetRevision: HEAD + path: metrics/alerts/kafka-mirror-maker + directory: + recurse: true + syncPolicy: + automated: + prune: true + selfHeal: true + syncOptions: + - CreateNamespace=false + managedNamespaceMetadata: + labels: + project: skodjob + destination: + name: {{ cluster }} + namespace: strimzi-mirror-kraft diff --git a/install/roles/automation-hub/templates/argo/applications/monitoring/alerts/worker-01/strimzi-alerts-kafka-mm2.yaml.j2 b/install/roles/automation-hub/templates/argo/applications/monitoring/alerts/worker-01/strimzi-alerts-kafka-mm2.yaml.j2 new file mode 100644 index 00000000..06f1f2e0 --- /dev/null +++ b/install/roles/automation-hub/templates/argo/applications/monitoring/alerts/worker-01/strimzi-alerts-kafka-mm2.yaml.j2 @@ -0,0 +1,27 @@ +apiVersion: argoproj.io/v1alpha1 +kind: Application +metadata: + name: strimzi-alerts-kafka-mm2-{{ cluster }} + labels: + project: skodjob + app: strimzi +spec: + project: monitoring + source: + repoURL: https://github.com/skodjob/deployment-hub + targetRevision: HEAD + path: metrics/alerts/kafka-mirror-maker + directory: + recurse: true + syncPolicy: + automated: + prune: true + selfHeal: true + syncOptions: + - CreateNamespace=false + managedNamespaceMetadata: + labels: + project: skodjob + destination: + name: {{ cluster }} + namespace: strimzi-mirror