From 9d52fbaf450bc8252d8833a29f39f6c5a3aba24a Mon Sep 17 00:00:00 2001 From: WrenIX Date: Fri, 6 Sep 2024 10:50:12 +0200 Subject: [PATCH] fix(infra-fluxcd): alert correct label namespace on alert --- infra-fluxcd/templates/prometheus-rule.yaml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/infra-fluxcd/templates/prometheus-rule.yaml b/infra-fluxcd/templates/prometheus-rule.yaml index 43b19b3..17a54a2 100644 --- a/infra-fluxcd/templates/prometheus-rule.yaml +++ b/infra-fluxcd/templates/prometheus-rule.yaml @@ -17,6 +17,7 @@ spec: labels: severity: "warning" {{` + namespace: "{{ $labels.exported_namespace }}" annotations: summary: "FluxCD has not fetched a source in {{ $labels.exported_namespace }} correct" description: "FluxCD has not fetched the source {{ $labels.name }} of {{ $labels.kind }} in {{ $labels.exported_namespace }}" @@ -28,6 +29,7 @@ spec: labels: severity: "warning" {{` + namespace: "{{ $labels.exported_namespace }}" annotations: summary: "FluxCD has not installed something in {{ $labels.exported_namespace }} correct" description: "FluxCD has not installed {{ $labels.name }} of {{ $labels.kind }} in {{ $labels.exported_namespace }} correct" @@ -41,6 +43,7 @@ spec: labels: severity: "warning" {{` + namespace: "{{ $labels.exported_namespace }}" annotations: summary: "FluxCD has not fetched a source in {{ $labels.exported_namespace }} correct" description: "FluxCD has not fetched the source {{ $labels.name }} of {{ $labels.kind }} in {{ $labels.exported_namespace }}" @@ -52,6 +55,7 @@ spec: labels: severity: "warning" {{` + namespace: "{{ $labels.exported_namespace }}" annotations: summary: "FluxCD has not installed something in {{ $labels.exported_namespace }} correct" description: "FluxCD has not installed {{ $labels.name }} of {{ $labels.kind }} in {{ $labels.exported_namespace }} correct"