+ container_name:amavis | "RCVD_IN_VALIDITY_RPBL_BLOCKED=0.001" OR "RCVD_IN_VALIDITY_SAFE_BLOCKED=0.001" OR "URIBL_BLOCKED=0.001" | stats by (pod_name) count(*)
+
- name: imap_rules
type: vlogs
interval: 1m
rules:
- record: kolab_log_imap_login_rate1m
expr: |
container_name:imap | "User logged in" | stats by (pod_name) count(*)
- record: kolab_log_imap_error_rate1m
expr: |
container_name:imap facility:"local6.err" | stats by (pod_name) count(*)
summary: "Too many loki errors, check if ingestion works or is overloaded"
- name: mx-checks
rules:
# - alert: kolab_outbound_mx_refused_threshold_10
# expr: kolab_outbound_mx_refused > 10
# for: 1m
# labels:
# severity: warning
# annotations:
# summary: "We have more than 10 refused emails ({{ $value }} at the moment) on {{ $labels.instance}} for today (this is a count of the daily logfile, it grows per day and is reset at midnight)."