1 {{- if and .Values.prometheus.enabled .Values.prometheus.additionalServiceMonitors }}
5 {{- range .Values.prometheus.additionalServiceMonitors }}
6 - apiVersion: monitoring.coreos.com/v1
10 namespace: {{ $.Release.Namespace | quote }}
12 app: {{ template "prometheus-operator.name" $ }}-prometheus
13 {{ include "prometheus-operator.labels" $ | indent 8 }}
14 {{- if .additionalLabels }}
15 {{ toYaml .additionalLabels | indent 8 }}
19 {{ toYaml .endpoints | indent 8 }}
21 jobLabel: {{ .jobLabel }}
23 {{- if .namespaceSelector }}
25 {{ toYaml .namespaceSelector | indent 8 }}
28 {{ toYaml .selector | indent 8 }}
29 {{- if .targetLabels }}
31 {{ toYaml .targetLabels | indent 8 }}