Skip to content

Commit

Permalink
Make 'for' configurable for falco exporter prometheus rules
Browse files Browse the repository at this point in the history
Signed-off-by: Jochem <[email protected]>
  • Loading branch information
jochbru committed Jul 9, 2024
1 parent 05dd011 commit 30d878c
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 5 deletions.
10 changes: 5 additions & 5 deletions charts/falco-exporter/templates/prometheusrule.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ spec:
summary: Falco is experiencing high rate of warning events
description: A high rate of warning events are being detected by Falco
expr: rate(falco_events{priority="4"}[{{ .Values.prometheusRules.alerts.warning.rate_interval }}]) > {{ .Values.prometheusRules.alerts.warning.threshold }}
for: 15m
for: {{ .Values.prometheusRules.alerts.warning.for }}
labels:
severity: warning
{{- end }}
Expand All @@ -41,7 +41,7 @@ spec:
summary: Falco is experiencing high rate of error events
description: A high rate of error events are being detected by Falco
expr: rate(falco_events{priority="3"}[{{ .Values.prometheusRules.alerts.error.rate_interval }}]) > {{ .Values.prometheusRules.alerts.error.threshold }}
for: 15m
for: {{ .Values.prometheusRules.alerts.error.for }}
labels:
severity: warning
{{- end }}
Expand All @@ -51,7 +51,7 @@ spec:
summary: Falco is experiencing high rate of critical events
description: A high rate of critical events are being detected by Falco
expr: rate(falco_events{priority="2"}[{{ .Values.prometheusRules.alerts.critical.rate_interval }}]) > {{ .Values.prometheusRules.alerts.critical.threshold }}
for: 15m
{{ .Values.prometheusRules.alerts.critical.for }}
labels:
severity: critical
{{- end }}
Expand All @@ -61,7 +61,7 @@ spec:
summary: Falco is experiencing high rate of alert events
description: A high rate of alert events are being detected by Falco
expr: rate(falco_events{priority="1"}[{{ .Values.prometheusRules.alerts.alert.rate_interval }}]) > {{ .Values.prometheusRules.alerts.alert.threshold }}
for: 5m
for: {{ .Values.prometheusRules.alerts.alert.for }}
labels:
severity: critical
{{- end }}
Expand All @@ -71,7 +71,7 @@ spec:
summary: Falco is experiencing high rate of emergency events
description: A high rate of emergency events are being detected by Falco
expr: rate(falco_events{priority="0"}[{{ .Values.prometheusRules.alerts.emergency.rate_interval }}]) > {{ .Values.prometheusRules.alerts.emergency.threshold }}
for: 1m
for: {{ .Values.prometheusRules.alerts.emergency.for }}
labels:
severity: critical
{{- end }}
Expand Down
5 changes: 5 additions & 0 deletions charts/falco-exporter/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -198,20 +198,25 @@ prometheusRules:
enabled: true
rate_interval: "5m"
threshold: 0
for: "15m"
error:
enabled: true
rate_interval: "5m"
threshold: 0
for: "15m"
critical:
enabled: true
rate_interval: "5m"
threshold: 0
for: "15m"
alert:
enabled: true
rate_interval: "5m"
threshold: 0
for: "5m"
emergency:
enabled: true
rate_interval: "1m"
threshold: 0
for: "1m"
additionalAlerts: {}

0 comments on commit 30d878c

Please sign in to comment.