1 {{- if and ( .Capabilities.APIVersions.Has "monitoring.coreos.com/v1" ) .Values.serviceMonitor.enabled }}
2 apiVersion: monitoring.coreos.com/v1
5 name: {{ template "kong.fullname" . }}
6 {{- if .Values.serviceMonitor.namespace }}
7 namespace: {{ .Values.serviceMonitor.namespace }}
10 {{- include "kong.metaLabels" . | nindent 4 }}
11 {{- if .Values.serviceMonitor.labels }}
12 {{ toYaml .Values.serviceMonitor.labels | nindent 4 }}
18 {{- if .Values.serviceMonitor.interval }}
19 interval: {{ .Values.serviceMonitor.interval }}
21 jobLabel: {{ .Release.Name }}
24 - {{ .Release.Namespace }}
27 {{- include "kong.metaLabels" . | nindent 6 }}