mirror of
https://github.com/openfaas/faas.git
synced 2025-06-29 02:03:24 +00:00
Add K8s specific files
This commit is contained in:
16
prometheus/k8s.alert.rules
Normal file
16
prometheus/k8s.alert.rules
Normal file
@ -0,0 +1,16 @@
|
||||
ALERT service_down
|
||||
IF up == 0
|
||||
|
||||
ALERT APIHighInvocationRate
|
||||
IF sum ( rate(gateway_function_invocation_total{code="200"}[10s]) ) by (function_name) > 5
|
||||
FOR 5s
|
||||
LABELS {
|
||||
service = "gateway",
|
||||
severity = "major",
|
||||
value = "{{$value}}"
|
||||
}
|
||||
ANNOTATIONS {
|
||||
summary = "High invocation total on {{ $labels.instance }}",
|
||||
description = "High invocation total on {{ $labels.instance }}"
|
||||
}
|
||||
|
Reference in New Issue
Block a user