Skip to content

Instantly share code, notes, and snippets.

@diogok
Created December 13, 2019 14:21
Show Gist options
  • Save diogok/ae867e64c040a2226bacbb6ef37fc331 to your computer and use it in GitHub Desktop.
Save diogok/ae867e64c040a2226bacbb6ef37fc331 to your computer and use it in GitHub Desktop.
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) / sum(gateway_service_count) by (function_name) > 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 {{ "}}" }}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment