updating helm/docker files and database config files
[it/otf.git] / otf-helm / otf / charts / databases / mongodb / templates / prometheus-alerting-rule.yaml
1 {{- if and .Values.metrics.enabled .Values.metrics.serviceMonitor.enabled .Values.metrics.serviceMonitor.alerting.rules }}
2 apiVersion: monitoring.coreos.com/v1
3 kind: PrometheusRule
4 metadata:
5   name: {{ template "mongodb.fullname" . }}
6   namespace: {{.Values.namespace }}
7   labels:
8     app: {{ template "mongodb.name" . }}
9     chart: {{ template "mongodb.chart" . }}
10     heritage: {{ .Release.Service }}
11     release: {{ .Release.Name }}
12     {{- if .Values.metrics.serviceMonitor.alerting.additionalLabels }}
13 {{ toYaml .Values.metrics.serviceMonitor.alerting.additionalLabels | indent 4 }}
14     {{- end }}
15 spec:
16   groups:
17 {{ toYaml .Values.metrics.serviceMonitor.alerting.rules | indent 4 }}
18 {{- end }}