2021-01-21 09:45:26 -06:00
|
|
|
{{- if .Values.gitea.metrics.serviceMonitor.enabled -}}
|
|
|
|
apiVersion: monitoring.coreos.com/v1
|
|
|
|
kind: ServiceMonitor
|
|
|
|
metadata:
|
|
|
|
name: {{ include "gitea.fullname" . }}
|
|
|
|
labels:
|
|
|
|
{{- include "gitea.labels" . | nindent 4 }}
|
2021-06-07 09:28:28 -05:00
|
|
|
{{- if .Values.gitea.metrics.serviceMonitor.additionalLabels }}
|
|
|
|
{{- toYaml .Values.gitea.metrics.serviceMonitor.additionalLabels | nindent 4 }}
|
2021-03-01 06:18:09 -06:00
|
|
|
{{- end }}
|
2021-01-21 09:45:26 -06:00
|
|
|
spec:
|
|
|
|
selector:
|
|
|
|
matchLabels:
|
|
|
|
{{- include "gitea.selectorLabels" . | nindent 6 }}
|
|
|
|
endpoints:
|
|
|
|
- port: http
|
|
|
|
{{- end -}}
|