diff --git a/charts/kyuubi/templates/kyuubi-podmonitor.yaml b/charts/kyuubi/templates/kyuubi-podmonitor.yaml index b10d80c3ff1..125ecac6f6b 100644 --- a/charts/kyuubi/templates/kyuubi-podmonitor.yaml +++ b/charts/kyuubi/templates/kyuubi-podmonitor.yaml @@ -25,7 +25,7 @@ metadata: spec: selector: matchLabels: - app: {{ .Release.Name }} + {{- include "kyuubi.selectorLabels" . | nindent 6 }} podMetricsEndpoints: {{- toYaml .Values.metrics.podMonitor.podMetricsEndpoints | nindent 4 }} {{- end }} diff --git a/charts/kyuubi/values.yaml b/charts/kyuubi/values.yaml index 51c6717ec02..065aafecf71 100644 --- a/charts/kyuubi/values.yaml +++ b/charts/kyuubi/values.yaml @@ -282,6 +282,9 @@ metrics: enabled: false # List of pod endpoints serving metrics to be scraped by Prometheus, see Prometheus Operator docs for more details podMetricsEndpoints: [] + # podMetricsEndpoints: + # - path: /metrics + # port: prometheus # ServiceMonitor by Prometheus Operator serviceMonitor: