Page Menu
Home
Phorge
Search
Configure Global Search
Log In
Files
F117753345
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Authored By
Unknown
Size
3 KB
Referenced Files
None
Subscribers
None
View Options
diff --git a/helm/files/victorialogs.rules.yml b/helm/files/victorialogs.rules.yml
index f7d34f0..5056188 100644
--- a/helm/files/victorialogs.rules.yml
+++ b/helm/files/victorialogs.rules.yml
@@ -1,46 +1,73 @@
# _time: 5m is implicit in all expressions when the interval is 5m
groups:
- name: roundcube_rules
type: vlogs
interval: 5m
rules:
- record: kolab_log_roundcube_fatalerror_rate5m
expr: '{pod_name=~"roundcube.*"} "PHP Fatal error" | stats by (pod_name) count(*)'
- record: kolab_log_roundcube_dberror_rate5m
expr: '{pod_name=~"roundcube.*"} "DB Error" | stats by (pod_name) count(*)'
- record: kolab_log_roundcube_exception_rate5m
expr: '{pod_name=~"roundcube.*"} "exception message" | stats by (pod_name) count(*)'
- name: kolab_rules
type: vlogs
interval: 5m
rules:
- record: kolab_log_error_rate5m
expr: '{pod_name=~"kolab.*"} "production.ERROR" | stats by (pod_name) count(*)'
- record: kolab_log_authenticate_rate5m
expr: '{pod_name=~"kolab.*"} "POST https://kolab-services:80/api/webhooks/cyrus-sasl" | stats by (pod_name) count(*)'
- record: kolab_log_horizon_error_rate5m
expr: '{pod_name=~"horizon.*"} "production.ERROR" | stats by (pod_name) count(*)'
- name: postfix_rules
type: vlogs
interval: 5m
rules:
- record: kolab_log_postfix_rejection_rate5m
expr: |
pod_name:postfix* | "refused to talk to me" | stats by (pod_name) count(*)
- record: kolab_log_postfix_temporary_error_rate5m
expr: |
pod_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
+ expr: |
+ pod_name:postfix* | extract "status=<status> " | stats by (status) count() as value
+ - record: kolab_log_postfix_relay_messages_total
+ expr: |
+ pod_name:postfix*
+ | extract "relay=<relay>, "
+ | replace_regexp("\\[.*", "") at relay
+ | extract "status=<status> "
+ | stats by (relay, status) count() as value
+ - record: kolab_log_postfix_bytes_total
+ expr: |
+ pod_name:postfix* | extract "size=<size>," | stats count() as value, sum(size) as total_bytes
+ # Calculate latencies
+ - record: kolab_log_postfix_relay_latency_seconds
+ expr: |
+ pod_name:postfix*
+ | extract "relay=<relay>, "
+ | replace_regexp("\\[.*", "") at relay
+ | extract "status=<status> "
+ | extract "delays=<a>/<b>/<c>/<d>,"
+ | extract "delay=<delay>,"
+ | stats by (relay, status)
+ avg(c) as connection_latency,
+ avg(d) as transmission_latency,
+ avg(delay) as delay
- name: imap_rules
type: vlogs
interval: 5m
rules:
- record: kolab_log_imap_login_rate5m
expr: |
pod_name:imap* | "User logged in" | stats by (pod_name) count(*)
- record: kolab_log_imap_error_rate5m
expr: |
pod_name:imap* facility:"local6.err" | stats by (pod_name) count(*)
File Metadata
Details
Attached
Mime Type
text/x-diff
Expires
Sat, Apr 4, 5:24 AM (4 d, 18 h ago)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
18822692
Default Alt Text
(3 KB)
Attached To
Mode
R114 kolab-infrastructure
Attached
Detach File
Event Timeline