feat(prometheus): set service monitor label selector

This commit is contained in:
Masaki Yatsu
2025-11-08 22:51:50 +09:00
parent bd23974980
commit 3103387065
4 changed files with 15 additions and 0 deletions

View File

@@ -60,6 +60,13 @@ prometheus:
requests:
storage: 50Gi
# ServiceMonitor selection
# Select ServiceMonitors with release label only in namespaces with enable-monitoring label
serviceMonitorSelectorNilUsesHelmValues: true
serviceMonitorNamespaceSelector:
matchLabels:
buun.channel/enable-monitoring: "true"
{{- if .Env.PROMETHEUS_HOST }}
ingress:
enabled: true