Page MenuHomePhorge

No OneTemporary

Authored By
Unknown
Size
4 KB
Referenced Files
None
Subscribers
None
diff --git a/helm/files/victorialogs.rules.yml b/helm/files/victorialogs.rules.yml
index 6310306..c7a87eb 100644
--- a/helm/files/victorialogs.rules.yml
+++ b/helm/files/victorialogs.rules.yml
@@ -1,90 +1,90 @@
# _time: 5m is implicit in all expressions when the interval is 5m
groups:
- name: roundcube_rules
type: vlogs
interval: 1m
rules:
- record: kolab_log_roundcube_fatalerror_rate1m
expr: '{pod_name=~"roundcube.*"} "PHP Fatal error" | stats by (pod_name) count(*)'
- record: kolab_log_roundcube_dberror_rate1m
expr: '{pod_name=~"roundcube.*"} "DB Error" | stats by (pod_name) count(*)'
- record: kolab_log_roundcube_exception_rate1m
expr: '{pod_name=~"roundcube.*"} "exception message" | stats by (pod_name) count(*)'
- name: kolab_rules
type: vlogs
interval: 1m
rules:
- record: kolab_log_error_rate1m
expr: '{pod_name=~"kolab.*"} "production.ERROR" | stats by (pod_name) count(*)'
- record: kolab_log_authenticate_rate1m
expr: '{pod_name=~"kolab.*"} "POST https://kolab-services:80/api/webhooks/cyrus-sasl" | stats by (pod_name) count(*)'
- record: kolab_log_horizon_error_rate1m
expr: '{pod_name=~"horizon.*"} "production.ERROR" | stats by (pod_name) count(*)'
- name: postfix_rules
type: vlogs
interval: 1m
rules:
- record: kolab_log_postfix_rejection_rate1m
expr: |
container_name:postfix | "refused to talk to me" | stats by (pod_name) count(*)
- record: kolab_log_postfix_temporary_error_rate1m
expr: |
container_name:postfix | "Temporary error, try again later" | stats by (pod_name) count(*)
# This includes both sent and received email. Filter by relay= ?
- record: kolab_log_postfix_messages_total_rate1m
expr: |
container_name:postfix
| "status="
| extract "status=<status> "
| stats by (status) count() as value
- record: kolab_log_postfix_relay_messages_total_rate1m
expr: |
container_name:postfix
| "status="
| extract "relay=<relay>, "
| replace("127.0.0.1[127.0.0.1]:13026", "amavis-originating") at relay
| replace("127.0.0.1[127.0.0.1]:13024", "amavis") at relay
| replace_regexp if (relay:!kolabnow.com) ("[^\\.]*\\.([^\\.]+\\.[^\\.]+)$", "$1") at relay # Only get toplevel domain
| replace_regexp("\\[.*", "") at relay
| extract "status=<status> "
| stats by (relay, status) count() as value
- record: kolab_log_postfix_bytes_total_rate1m
expr: |
container_name:postfix
| "status="
| extract "size=<size>,"
| stats count() as value, sum(size) as total_bytes
- record: kolab_log_postfix_relay_delay_seconds
expr: |
container_name:postfix
| "delay="
| extract "relay=<relay>, "
| replace("127.0.0.1[127.0.0.1]:13026", "amavis-originating") at relay
| replace("127.0.0.1[127.0.0.1]:13024", "amavis") at relay
| replace_regexp("\\[.*", "") at relay
| replace_regexp if (relay:!kolabnow.com) ("[^\\.]*\\.([^\\.]+\\.[^\\.]+)$", "$1") at relay # Only get toplevel domain
| extract "status=<status> "
| extract "delays=<a>/<b>/<c>/<d>,"
| extract "delay=<delay>,"
| stats by (relay, status)
avg(a) as arrival_delay,
avg(b) as queue_delay,
avg(c) as connection_delay,
avg(d) as transmission_delay,
max(delay) as max_delay,
avg(delay) as delay
- name: imap_rules
type: vlogs
interval: 1m
rules:
- record: kolab_log_imap_login_rate1m
expr: |
- pod_name:imap* | "User logged in" | stats by (pod_name) count(*)
+ container_name:imap | "User logged in" | stats by (pod_name) count(*)
- record: kolab_log_imap_error_rate1m
expr: |
- pod_name:imap* facility:"local6.err" | stats by (pod_name) count(*)
+ container_name:imap facility:"local6.err" | stats by (pod_name) count(*)

File Metadata

Mime Type
text/x-diff
Expires
Sat, Apr 4, 2:35 AM (1 w, 11 h ago)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
18822156
Default Alt Text
(4 KB)

Event Timeline