mirror of
https://github.com/openfaas/faas.git
synced 2025-06-23 23:33:25 +00:00
Introduce gateway_function_invocation_total to track individual functions
Introduce prometheus_alertmanager into stack - have it fire into webhook stash
This commit is contained in:
15
prometheus/alert.rules
Normal file
15
prometheus/alert.rules
Normal file
@ -0,0 +1,15 @@
|
||||
ALERT service_down
|
||||
IF up == 0
|
||||
|
||||
ALERT APIHighInvocationRate
|
||||
IF rate ( gateway_function_invocation_total [10s] ) > 5
|
||||
FOR 30s
|
||||
ANNOTATIONS {
|
||||
summary = "High invocation total on {{ $labels.instance }}",
|
||||
description = "High invocation total on {{ $labels.instance }}",
|
||||
}
|
||||
LABELS {
|
||||
service = "gateway",
|
||||
severity = "major",
|
||||
value = "{{$value}}",
|
||||
}
|
Reference in New Issue
Block a user