Add ServiceMonitor Prometheus selector label (#116)

Reviewed-on: https://gitea.com/gitea/helm-chart/pulls/116
Reviewed-by: luhahn <luhahn@noreply.gitea.io>
Reviewed-by: lafriks <lafriks@noreply.gitea.io>
Co-authored-by: Starefossen <starefossen@noreply.gitea.io>
Co-committed-by: Starefossen <starefossen@noreply.gitea.io>
This commit is contained in:
Starefossen 2021-03-01 20:18:09 +08:00 committed by lafriks
parent 33903d8f6c
commit 7ed82c7a63
2 changed files with 4 additions and 0 deletions

View File

@ -5,6 +5,9 @@ metadata:
name: {{ include "gitea.fullname" . }}
labels:
{{- include "gitea.labels" . | nindent 4 }}
{{- if .Values.metrics.serviceMonitor.prometheusSelector }}
prometheus: {{ .Values.metrics.serviceMonitor.prometheusSelector }}
{{- end }}
spec:
selector:
matchLabels:

View File

@ -114,6 +114,7 @@ gitea:
enabled: false
serviceMonitor:
enabled: false
# prometheusSelector: default
ldap:
enabled: false