Skip to content

Instantly share code, notes, and snippets.

@butcher
Last active December 7, 2018 17:24
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save butcher/a3d00bcc083a515fdd745bebd7966876 to your computer and use it in GitHub Desktop.
Save butcher/a3d00bcc083a515fdd745bebd7966876 to your computer and use it in GitHub Desktop.
Prometheus alerts configuration
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