Skip to content

Commit

Permalink
[KYUUBI apache#6006] Support additional labels for service monitor
Browse files Browse the repository at this point in the history
  • Loading branch information
sudohainguyen committed Jan 25, 2024
1 parent 47a1091 commit ed3fb0e
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
3 changes: 3 additions & 0 deletions charts/kyuubi/templates/kyuubi-servicemonitor.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,9 @@ metadata:
name: {{ .Release.Name }}
labels:
{{- include "kyuubi.labels" . | nindent 4 }}
{{- if .Values.serviceMonitor.additionalLabels }}
{{- toYaml .Values.serviceMonitor.additionalLabels | nindent 4 }}
{{- end }}
spec:
selector:
matchLabels:
Expand Down
2 changes: 2 additions & 0 deletions charts/kyuubi/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -297,6 +297,8 @@ serviceMonitor:
# The endpoints section in a ServiceMonitor specifies the metrics information for each target endpoint.
# This allows you to collect metrics from multiple Services across your Kubernetes cluster in a standardized and automated way.
endpoints: []
# Additional labels that can be used so ServiceMonitor will be discovered by Prometheus
additionalLabels: {}

# Rules for the Prometheus Operator
prometheusRule:
Expand Down

0 comments on commit ed3fb0e

Please sign in to comment.