prometheus-postgres-exporter/templates/prometheus-postgres-exporter/prometheusRules.yaml
Markus Pesch 7ea826a2a1
All checks were successful
continuous-integration/drone/tag Build is passing
continuous-integration/drone/push Build is passing
fix(prometheusRule): use the fullname as group name
2024-11-26 22:30:48 +01:00

23 lines
705 B
YAML

{{- if gt (len .Values.prometheus.rules) 0 }}
---
apiVersion: monitoring.coreos.com/v1
kind: PrometheusRule
metadata:
{{- with (include "prometheus-postgres-exporter.prometheusRules.annotations" . | fromYaml) }}
annotations:
{{- toYaml . | nindent 4 }}
{{- end }}
{{- with (include "prometheus-postgres-exporter.prometheusRules.labels" . | fromYaml) }}
labels:
{{- toYaml . | nindent 4 }}
{{- end }}
name: {{ include "prometheus-postgres-exporter.fullname" . }}
namespace: {{ .Release.Namespace }}
spec:
{{- with .Values.prometheus.rules }}
groups:
- name: {{ template "prometheus-postgres-exporter.fullname" $ }}
rules:
{{ toYaml . | nindent 4 }}
{{- end }}
{{- end }}