How to Route Grafana Alerts to Pingzo Notification Channels
Grafana is an industry standard dashboard for tracking time-series metrics from Prometheus, InfluxDB, and Elasticsearch databases. While Grafana excels at visualizing database loads and system CPU spikes, its alerting options can be complex to configure. If you want to route Grafana metric alerts directly to developer chat portals like WhatsApp or Telegram, Pingzo provides a clean webhook gateway.
This guide details how to configure Grafana alerting contact points to forward incidents to Pingzo.
The Advantages of Routing Grafana through Pingzo
- Official WhatsApp Notifications: Send metrics alerts to developer phones via the official WhatsApp Business API, bypassing email inbox clutter.
- Centralized Incident Logs: Track metric alerts from Grafana alongside external HTTP check outages in a single dashboard.
- Simple Webhook Parsing: Pingzo automatically parses incoming Grafana alert payloads, extracts key labels, and formats the output into readable chat updates.
- Multi-Channel Escalation: Configure escalations to dispatch messages to Slack first, and then to WhatsApp or Telegram if the issue remains unresolved.
Configuration Steps
Follow these steps to connect your Grafana alerting rules to Pingzo:
Step 1: Create a Custom Webhook Channel in Pingzo
- Log in to your Pingzo Dashboard and navigate to the Alert Channels page.
- Click Add Channel and select Custom Webhook from the menu.
- Assign it a descriptive name (e.g., "Grafana Alert Webhook").
- Copy the generated Webhook Endpoint URL to your clipboard.
- Click Save.
Step 2: Add Pingzo as a Contact Point in Grafana
- Log in to your Grafana instance.
- In the left sidebar, click the Alerting icon and navigate to Contact Points.
- Click Add Contact Point.
- Enter a name for the contact point (e.g., "Pingzo Notification Gateway").
- Select Webhook from the integration type dropdown list.
- Paste the Webhook Endpoint URL you copied in Step 1 into the URL field.
- Set the HTTP Method to
POST. - Click Save Contact Point.
Step 3: Map Contact Points to Alerting Rules
- Go to the Grafana Notification Policies page.
- Click New Policy or edit your default notification policy.
- Set the contact point to "Pingzo Notification Gateway."
- Under matching labels, define which alerting rules should trigger this contact point (e.g., set
severity = criticalorteam = backend). - Click Save Policy.
Verification and Formatting
To verify that alerts are routing correctly:
- On the Grafana Contact Points page, locate your Pingzo gateway and click the Test button.
- Select a sample payload template and click Send Test Alert.
- Confirm that you receive a structured notification in your connected Pingzo alert destinations (such as Telegram or WhatsApp).
- Verify that metric parameters (like query values and server names) are formatted cleanly.
- Ensure that alerts resolve automatically when Grafana sends a recovery payload.