Connect Grafana, Alertmanager, CloudWatch or any tool
The steps for each built-in source, and the generic format for everything else.
Grafana
- In Grafana open Alerting, Contact points, then Add contact point.
- Choose type Webhook and paste the monitor's address.
- If you use a shared secret, set the Authorization header with scheme Bearer and the secret as the credentials.
- Use Test, then route the alerts you want to this contact point in your notification policies.
Prometheus Alertmanager
- Add a receiver with a
webhook_configsentry whoseurlis the monitor's address. - Set
send_resolved: true. Without it the incident never closes. - Route the alerts you want to the receiver and reload Alertmanager.
Amazon CloudWatch
- Create an Amazon SNS topic and add a subscription with protocol HTTPS and the monitor's address.
- SNS sends a confirmation. Open the monitor's event log, find the subscription confirmation entry, and open its confirm link yourself.
- Add the topic as the notification for both the In alarm and OK states of each alarm.
Anything else
Choose Generic and send JSON, a form, or plain query parameters to the address:
curl -X POST "$URL" -H "content-type: application/json" \
-d '{"status":"down","title":"Checkout is failing","message":"Error rate above 5%"}'
# and when it is fixed
curl -X POST "$URL" -d '{"status":"up"}'You can add a key to track several separate problems on one monitor, a severity, a link, and a source_ip for blocking.