Skip to content

Commit 510f750

Browse files
Merge pull request #195 from cloudogu/feature/prometheus-all-namespaces
Prometheus: watch CRs in all namespaces
2 parents 7800314 + 136f917 commit 510f750

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed

applications/cluster-resources/monitoring/prometheus-stack-helm-values.ftl.yaml

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -162,6 +162,22 @@ grafana:
162162

163163
prometheus:
164164
prometheusSpec:
165+
# Find podMonitors, serviceMonitor, etc. in all namespaces
166+
serviceMonitorNamespaceSelector:
167+
matchLabels: {}
168+
# With this, we don't need the label "release: kube-prometheus-stack" on the service monitor
169+
serviceMonitorSelectorNilUsesHelmValues: false
170+
podMonitorNamespaceSelector:
171+
matchLabels: {}
172+
podMonitorSelectorNilUsesHelmValues: false
173+
ruleNamespaceSelector:
174+
matchLabels: {}
175+
ruleSelectorNilUsesHelmValues: false
176+
scrapeConfigSelectorNilUsesHelmValues: false
177+
probeNamespaceSelector:
178+
matchLabels: {}
179+
probeSelectorNilUsesHelmValues: false
180+
165181
<#if podResources == true>
166182
resources:
167183
limits:

0 commit comments

Comments
 (0)