Skip to content

Commit

Permalink
change the podmonitor to select pods correctly
Browse files Browse the repository at this point in the history
Signed-off-by: zhifanggao <[email protected]>
  • Loading branch information
zhifanggao committed Dec 6, 2024
1 parent dc3ac89 commit 092f13f
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 1 addition & 1 deletion charts/kyuubi/templates/kyuubi-podmonitor.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}
3 changes: 3 additions & 0 deletions charts/kyuubi/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit 092f13f

Please sign in to comment.