1 {{- if .Values.prometheus.additionalServiceMonitors }}
5 {{- range .Values.prometheus.additionalServiceMonitors }}
6 - apiVersion: "monitoring.coreos.com/v1"
11 app: {{ template "prometheus.name" $ }}-prometheus
12 {{ include "prometheus.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 }}