Created
December 13, 2019 14:21
-
-
Save diogok/ae867e64c040a2226bacbb6ef37fc331 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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