Skip to content

Instantly share code, notes, and snippets.

@FUSAKLA
Last active November 23, 2020 06:47
Show Gist options
  • Save FUSAKLA/7f2115e9d18fdc0a48221f29411167dd to your computer and use it in GitHub Desktop.
Save FUSAKLA/7f2115e9d18fdc0a48221f29411167dd to your computer and use it in GitHub Desktop.
promruval example Prometheus rules
groups:
- name: test-group
rules:
- alert: TrafficDifference1w
expr: |
abs(
rate(http_requests_total{dc="us-west"}[5m])
-
rate(http_requests_total{dc="us-west"}[5m] offset 7d)
) > 1000
labels:
severity: high
annotations:
playbook: https://fusakla.cz/playbook
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment