mirror of
https://github.com/openfaas/faas.git
synced 2025-06-10 01:06:47 +00:00
16 lines
460 B
YAML
16 lines
460 B
YAML
groups:
|
|
- name: prometheus/alert.rules
|
|
rules:
|
|
- alert: service_down
|
|
expr: up == 0
|
|
- alert: APIHighInvocationRate
|
|
expr: sum(rate(gateway_function_invocation_total{code="200"}[10s])) BY (function_name) > 5
|
|
for: 5s
|
|
labels:
|
|
service: gateway
|
|
severity: major
|
|
value: '{{$value}}'
|
|
annotations:
|
|
description: High invocation total on {{ $labels.instance }}
|
|
summary: High invocation total on {{ $labels.instance }}
|