diff --git a/templates/gitea/servicemonitor.yaml b/templates/gitea/servicemonitor.yaml index 8f22ea5..02750d0 100644 --- a/templates/gitea/servicemonitor.yaml +++ b/templates/gitea/servicemonitor.yaml @@ -5,8 +5,8 @@ metadata: name: {{ include "gitea.fullname" . }} labels: {{- include "gitea.labels" . | nindent 4 }} - {{- if .Values.gitea.metrics.serviceMonitor.prometheusSelector }} - prometheus: {{ .Values.gitea.metrics.serviceMonitor.prometheusSelector }} + {{- if .Values.gitea.metrics.serviceMonitor.additionalLabels }} + {{- toYaml .Values.gitea.metrics.serviceMonitor.additionalLabels | nindent 4 }} {{- end }} spec: selector: diff --git a/values.yaml b/values.yaml index dc73b04..e1a2526 100644 --- a/values.yaml +++ b/values.yaml @@ -131,7 +131,8 @@ gitea: enabled: false serviceMonitor: enabled: false - # prometheusSelector: default + # additionalLabels: + # prometheus-release: prom1 ldap: enabled: false