Alerts

/etc/prometheus/alert.rules.yml > prometheus/alert.rules
APIHighInvocationRate (0 active)
alert: APIHighInvocationRate
expr: sum
  by(function_name) (rate(gateway_function_invocation_total{code="200"}[10s]))
  > 5
for: 5s
labels:
  service: gateway
  severity: major
annotations:
  description: High invocation total on {{ $labels.function_name }}
  summary: High invocation total on {{ $labels.function_name }}
service_down (0 active)
alert: service_down
expr: up == 0