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