1 {{- if and .Values.prometheus.enabled .Values.prometheus.additionalServiceMonitors }}
5 {{- range .Values.prometheus.additionalServiceMonitors }}
6 - apiVersion: {{ printf "%s/v1" ($.Values.prometheusOperator.crdApiGroup | default "monitoring.coreos.com") }}
11 app: {{ template "prometheus-operator.name" $ }}-prometheus
12 {{ include "prometheus-operator.labels" $ | indent 8 }}
13 {{- if .additionalLabels }}
14 {{ toYaml .additionalLabels | indent 8 }}
18 {{ toYaml .endpoints | indent 8 }}
20 jobLabel: {{ .jobLabel }}
22 {{- if .namespaceSelector }}
24 {{ toYaml .namespaceSelector | indent 8 }}
27 {{ toYaml .selector | indent 8 }}