diff --git a/k8s/monitoring/values-production.yaml b/k8s/monitoring/values-production.yaml index 684a48a..b29af28 100644 --- a/k8s/monitoring/values-production.yaml +++ b/k8s/monitoring/values-production.yaml @@ -65,6 +65,16 @@ kube-prometheus-stack: values: - monitoring # Its own namespace - webrtc-be # Your app's namespace + # Enable discovery of PrometheusRules in these namespaces + ruleNamespaceSelector: + matchExpressions: + - key: kubernetes.io/metadata.name + operator: In + values: + - monitoring + - webrtc-be + ruleSelector: + matchExpressions: [] # Match all rules in selected namespaces # Add the manual scrape configuration additionalScrapeConfigs: - job_name: 'node-exporter' diff --git a/k8s/monitoring/values-staging.yaml b/k8s/monitoring/values-staging.yaml index bd648f5..9c06be1 100644 --- a/k8s/monitoring/values-staging.yaml +++ b/k8s/monitoring/values-staging.yaml @@ -65,6 +65,16 @@ kube-prometheus-stack: values: - monitoring # Its own namespace - webrtc-be # Your app's namespace + # Enable discovery of PrometheusRules in these namespaces + ruleNamespaceSelector: + matchExpressions: + - key: kubernetes.io/metadata.name + operator: In + values: + - monitoring + - webrtc-be + ruleSelector: + matchExpressions: [] # Match all rules in selected namespaces # Add the manual scrape configuration additionalScrapeConfigs: - job_name: 'node-exporter'