fix minior bug that creates invalid kong DANM dannotation
[it/dep.git] / ric-aux / helm / infrastructure / subcharts / kong / charts / postgresql / templates / prometheusrule.yaml
1 {{- if and .Values.metrics.enabled .Values.metrics.prometheusRule.enabled }}
2 apiVersion: monitoring.coreos.com/v1
3 kind: PrometheusRule
4 metadata:
5   name: {{ template "postgresql.fullname" . }}
6 {{- with .Values.metrics.prometheusRule.namespace }}
7   namespace: {{ . }}
8 {{- end }}
9   labels:
10     app: {{ template "postgresql.name" . }}
11     chart: {{ template "postgresql.chart" . }}
12     release: {{ .Release.Name | quote }}
13     heritage: {{ .Release.Service | quote }}
14 {{- with .Values.metrics.prometheusRule.additionalLabels }}
15 {{ toYaml . | indent 4 }}
16 {{- end }}
17 spec:
18 {{- with .Values.metrics.prometheusRule.rules }}
19   groups:
20     - name: {{ template "postgresql.name" $ }}
21       rules: {{ tpl (toYaml .) $ | nindent 8 }}
22 {{- end }}
23 {{- end }}