Webhook Setup Guide
Step-by-step guide to configuring webhooks from Prometheus, Grafana, Zabbix, Datadog, PagerDuty, New Relic, and generic sources for RawMon push notifications.
Overview
RawMon receives webhooks from 7 external monitoring tools via its Cloudflare Worker push relay. Each tool has a dedicated parser that extracts alert status, title, and message from the incoming payload.
Your webhook URL is:
https://rawmon-push-relay.rawops.workers.dev/?source=SOURCE&deviceId=YOUR_DEVICE_ID
Find your device ID in Settings > Push Notifications.
Prometheus / Alertmanager
Source parameter: prometheus
- In your Alertmanager config (
alertmanager.yml), add a webhook receiver:
receivers:
- name: rawmon
webhook_configs:
- url: "https://rawmon-push-relay.rawops.workers.dev/?source=prometheus&deviceId=YOUR_ID"
- Route alerts to the
rawmonreceiver. The parser readsstatus(firing/resolved),alerts[].labels.alertname, andalerts[].annotations.description.
Grafana
Source parameter: grafana
- Go to Alerting > Contact Points > New Contact Point.
- Choose Webhook type.
- Set the URL to your RawMon webhook URL with
source=grafana. - Grafana sends
state(alerting/ok),title, andmessagefields.
Zabbix
Source parameter: zabbix
- Go to Administration > Media Types > Create.
- Choose Webhook type and set the URL.
- Map Zabbix macros to the JSON payload:
{HOST.NAME},{TRIGGER.STATUS},{TRIGGER.NAME}. - The parser reads
status(PROBLEM/RESOLVED),host, andtrigger.
Datadog
Source parameter: datadog
- Go to Integrations > Webhooks in your Datadog dashboard.
- Add a new webhook with your RawMon URL (
source=datadog). - Use the default JSON payload. The parser reads
event_type,title, andbodyfrom Datadog's payload format.
PagerDuty
Source parameter: pagerduty
- Go to Services > Your Service > Integrations > Add Integration.
- Choose Generic Webhooks (v3).
- Set the URL to your RawMon webhook URL with
source=pagerduty. - The parser reads
event.event_type(incident.triggered/incident.resolved) and incident details.
New Relic
Source parameter: newrelic
- Go to Alerts & AI > Notification Channels > Create Channel.
- Choose Webhook and enter your RawMon URL with
source=newrelic. - The parser reads
current_state(open/closed),condition_name, anddetails.
Generic Webhook
Source parameter: generic
For tools not listed above, use the generic parser with custom field mapping:
?source=generic&deviceId=YOUR_ID&titlePath=alert.name&messagePath=alert.detail&statusPath=alert.state
Custom field mappings (query parameters):
titlePath— Dot-notation path to the alert title in the JSON payloadmessagePath— Path to the alert description/messagestatusPath— Path to the status field
The status field value is evaluated as UP if it matches: ok, resolved, up, recovery, healthy. Everything else is treated as DOWN.