Overview
Grafana is a popular open-source platform for monitoring and observability. EasyContact supports both Grafana’s Unified Alerting (Grafana 8+) and Legacy Alerting formats.Grafana 8+ uses Unified Alerting by default. Legacy alerting is deprecated but still supported for older installations.
Setup Instructions
1
Create Integration in EasyContact
- Go to Configuration → Integrations
- Click Add Integration
- Select Grafana as the type
- Enter a name (e.g., “Production Grafana”)
- Save and copy the webhook URL
2
Create Contact Point (Unified Alerting)
- Go to Alerting → Contact points
- Click Add contact point
- Select Webhook as the type
- Paste your EasyContact webhook URL
- Save the contact point
3
Create Notification Policy
- Go to Alerting → Notification policies
- Edit or create a policy
- Set the contact point to your EasyContact webhook
4
Test the Integration
Use the Test button in the contact point configuration to send a test alert
Unified Alerting Configuration
Contact Point Setup
- Navigate to Alerting → Contact points
- Click Add contact point
- Configure:
- Name: EasyContact
- Type: Webhook
- URL: Your EasyContact webhook URL
- HTTP Method: POST
Optional Settings
| Setting | Recommended Value |
|---|---|
| Max Alerts | 0 (unlimited) |
| Disable Resolved Message | No (keep enabled) |
| HTTP Basic Auth | Not required |
Legacy Alerting Configuration
For Grafana 7.x and earlier with legacy alerting:1
Create Notification Channel
- Go to Alerting → Notification channels
- Click Add channel
- Select webhook as the type
2
Configure Webhook
- Name: EasyContact
- URL: Your EasyContact webhook URL
- HTTP Method: POST
- Send on all alerts: Yes
- Include image: Optional
Field Mapping
Unified Alerting
| Grafana Field | EasyContact Field |
|---|---|
labels.alertname | Title |
annotations.summary | Title (fallback) |
annotations.description | Description |
status | Status (firing → problem, resolved → ok) |
labels.severity | Severity |
labels.instance | Host |
labels.job | Service |
fingerprint | Event ID |
Legacy Alerting
| Grafana Field | EasyContact Field |
|---|---|
ruleName | Title |
message | Description |
state | Status |
ruleUrl | URL |
evalMatches | Metric details |
Severity Mapping
Default Mapping
| Grafana Severity | EasyContact Severity |
|---|---|
| critical | Critical |
| high | High |
| warning | Warning |
| info | Info |
Legacy State Mapping
| Grafana State | EasyContact Status |
|---|---|
| alerting | Problem |
| ok | OK |
| pending | Problem (warning) |
| no_data | Problem (warning) |
Example Payloads
Unified Alerting Payload
Legacy Alerting Payload
Grafana-Specific Features
Dashboard Links
Grafana includes helpful links in alerts:| Field | Description |
|---|---|
dashboardURL | Link to the dashboard |
panelURL | Direct link to the panel |
silenceURL | Quick link to silence the alert |
generatorURL | Link to the alert rule |
Alert Rule Examples
CPU Alert Rule (Unified)
Enrichment Examples
Troubleshooting
Alerts not being received
Alerts not being received
- Test the contact point from Grafana UI
- Check Grafana server logs for webhook errors
- Verify network connectivity to EasyContact
- Ensure notification policy routes to correct contact point
Resolved alerts not working
Resolved alerts not working
- Verify “Disable Resolved Message” is NOT checked
- Check notification policy includes resolved alerts
- Verify alert rule has proper conditions for resolution
Missing dashboard links
Missing dashboard links
- Ensure
externalURLis configured in Grafana - Check Grafana root URL settings
Legacy vs Unified format issues
Legacy vs Unified format issues
- Check which alerting system is enabled in Grafana
- EasyContact auto-detects format, but verify payload structure
- Review webhook samples for actual format being sent
Best Practices
Use Unified Alerting
Use Unified Alerting
Migrate to Unified Alerting for better features and consistency with Prometheus/Alertmanager format.
Include Runbook URLs
Include Runbook URLs
Add
runbook_url annotation to help responders quickly find remediation steps.Organize with Folders
Organize with Folders
Use Grafana folders to organize alerts and include folder name in labels.
Configure External URL
Configure External URL
Set Grafana’s external URL properly so dashboard links work correctly.