From e5cd0a214f757915602e2f256411a37975e94622 Mon Sep 17 00:00:00 2001 From: Aaron Riedel Date: Mon, 23 Oct 2023 18:05:29 +0200 Subject: [PATCH] Tell Prometheus to only pick up rules from namespaces with label "prometheus: yolokube" --- prometheus/values.yaml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/prometheus/values.yaml b/prometheus/values.yaml index a1f0b0b..3639ed5 100644 --- a/prometheus/values.yaml +++ b/prometheus/values.yaml @@ -119,7 +119,9 @@ prometheus: resources: requests: storage: 10Gi - ruleNamespaceSelector: {} + ruleNamespaceSelector: + matchLabels: + prometheus: yolokube ruleSelectorNilUsesHelmValues: false serviceMonitorSelectorNilUsesHelmValues: false podMonitorSelectorNilUsesHelmValues: false