Last active
December 7, 2018 17:24
-
-
Save butcher/a3d00bcc083a515fdd745bebd7966876 to your computer and use it in GitHub Desktop.
Prometheus alerts configuration
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: example | |
rules: | |
# Alert for any instance that is unreachable for >5 minutes. | |
- alert: SalesforceSubscriberDown | |
expr: (push_time_seconds{job="salesforce-subscriber"} offset 5m) == push_time_seconds{job="salesforce-subscriber"} | |
labels: | |
severity: page | |
annotations: | |
summary: "Salesforce subscriber is down" | |
description: "{{ $labels.instance }} of job {{ $labels.job }} has been down for more than 5 minutes." |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment