Page Menu
Home
Phorge
Search
Configure Global Search
Log In
Files
F117755024
victorialogs.rules.yml
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
victorialogs.rules.yml
View Options
# _time: 5m is implicit in all expressions when the interval is 5m
groups
:
-
name
:
ServiceLog
type
:
vlogs
interval
:
5m
rules
:
-
alert
:
HasErrorLog
expr
:
'env:
"prod"
AND
status:~"error|warn"
|
stats
by
(service,
kubernetes.pod)
count()
as
errorLog
|
filter
errorLog:>0'
annotations
:
description
:
'Service
{{$labels.service}}
(pod
{{
index
$labels
"kubernetes.pod"
}})
generated
{{$labels.errorLog}}
error
logs
in
the
last
5
minutes'
-
name
:
ServiceRequest
type
:
vlogs
interval
:
5m
rules
:
-
alert
:
TooManyFailedRequest
expr
:
'*
|
extract
"ip=<ip>
"
|
extract
"status_code=<code>;"
|
stats
by
(ip)
count()
if
(code:~4.*)
as
failed,
count()
as
total|
math
failed
/
total
as
failed_percentage|
filter
failed_percentage
:>
0.01
|
fields
ip,failed_percentage'
annotations
:
description
:
"Connection
from
address
{{$labels.ip}}
has
{{$value}}%
failed
requests
in
last
5
minutes"
-
name
:
roundcube_rules
type
:
vlogs
interval
:
5m
rules
:
-
alert
:
Roundcube php fatal error
annotations
:
description
:
"{{
$labels.pod_name
}}
encountered
{{$value}}
php
fatal
errors
in
the
last
5
minutes."
expr
:
'{pod_name=~"roundcube.*"}
"PHP
Fatal
error"
|
stats
by
(pod_name)
count(*)'
labels
:
severity
:
warning
-
record
:
kolab:roundcube:fatalerror:rate5m
expr
:
'{pod_name=~"roundcube.*"}
"PHP
Fatal
error"
|
stats
by
(pod_name)
count(*)'
-
alert
:
Database error
annotations
:
description
:
"{{
$labels.pod_name
}}
encountered
{{$value}}
db
errors
in
the
last
5
minutes."
expr
:
'{pod_name=~"roundcube.*"}
"DB
Error"
|
stats
by
(pod_name)
count(*)'
labels
:
severity
:
warning
-
record
:
kolab:roundcube:dberror:rate5m
expr
:
'{pod_name=~"roundcube.*"}
"DB
Error"
|
stats
by
(pod_name)
count(*)'
-
alert
:
Roundcube exception
annotations
:
description
:
"{{
$labels.pod_name
}}
encountered
{{$value}}
execptions
in
the
last
5
minutes."
expr
:
'{pod_name=~"roundcube.*"}
"exception
message"
|
stats
by
(pod_name)
count(*)'
labels
:
severity
:
warning
-
record
:
kolab:roundcube:exception:rate5m
expr
:
'{pod_name=~"roundcube.*"}
"exception
message"
|
stats
by
(pod_name)
count(*)'
-
name
:
horizon_rules
type
:
vlogs
interval
:
5m
rules
:
-
alert
:
Horizon error
annotations
:
description
:
"{{
$labels.pod_name
}}
encountered
{{$value}}
an
error
in
the
last
5
minutes."
expr
:
'{pod_name=~"horizon.*"}
"production.ERROR"
|
stats
by
(pod_name)
count(*)'
labels
:
severity
:
warning
-
name
:
kolab_rules
type
:
vlogs
interval
:
5m
rules
:
-
record
:
kolab:error:rate5m
expr
:
'{pod_name=~"kolab.*"}
"production.ERROR"
|
stats
by
(pod_name)
count(*)
'
-
record
:
kolab:authenticate:rate5m
expr
:
'{pod_name=~"kolab.*"}
"POST
https://kolab-services:80/api/webhooks/cyrus-sasl"
|
stats
by
(pod_name)
count(*)
as
rate'
-
alert
:
Kolab error
annotations
:
description
:
"{{
$labels.pod_name
}}
encountered
{{$value}}
an
error
in
the
last
5
minutes."
expr
:
'{pod_name=~"kolab.*"}
"production.ERROR"
|
stats
by
(pod_name)
count(*)'
labels
:
severity
:
warning
-
name
:
postfix_rules
type
:
vlogs
interval
:
5m
rules
:
-
record
:
kolab:postfix:rejection:rate5m
expr
:
|
pod_name:postfix* | "refused to talk to me" | stats by (pod_name) count(*)
# - alert: Postfix rejections
# annotations:
# description: "{{ $value }} messages were rejected."
# expr: 'postfix:rejection:rate5m > 5'
# labels:
# severity: warning
-
name
:
imap_rules
type
:
vlogs
interval
:
5m
rules
:
-
record
:
kolab:imap:login:rate5m
expr
:
|
pod_name:imap* | "User logged in" | stats by (pod_name) count(*) as rate
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Sat, Apr 4, 7:36 AM (1 w, 5 d ago)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
18823042
Default Alt Text
victorialogs.rules.yml (3 KB)
Attached To
Mode
R114 kolab-infrastructure
Attached
Detach File
Event Timeline