{{- with .Values.metaMonitoring.prometheusRule }} {{- if .enabled }} apiVersion: monitoring.coreos.com/v1 kind: PrometheusRule metadata: name: {{ include "mimir.resourceName" (dict "ctx" $ "component" "prometheus-rule") }} {{- with .annotations }} annotations: {{- toYaml . | nindent 4 }} {{- end }} labels: {{- include "mimir.labels" (dict "ctx" $) | nindent 4 }} {{- with .labels }} {{- toYaml . | nindent 4 }} {{- end }} namespace: {{ .namespace | default $.Release.Namespace | quote }} spec: groups: {{- toYaml .groups | nindent 4 }} {{- end }} {{- end }}