Overview
Prometheus is a leading open-source monitoring and alerting toolkit. Easyalert integrates with Prometheus via Alertmanager webhooks, receiving alert notifications when your alerting rules fire.This integration receives webhooks from Alertmanager, not directly from
Prometheus. Make sure you have Alertmanager configured.
Requirements
- Prometheus and AlertManager installed
- Easyalert account and active tenant
- Access to AlertManager configuration file
Setup Instructions
Create Integration in Easyalert
- Go to Integrations page from left menu
- Click Add Integration button
- Select Prometheus as Source Type
- Enter a name (e.g.,
Kubernetes Prometheus) - Click Create to save
- Copy the generated Webhook URL
Example: https://api.easyalert.io/api/v1/webhooks/ingest/wh_abc123...
Alertmanager Configuration
Route Parameters
| Parameter | Description | Recommended Value |
|---|---|---|
group_by | Labels to group by | ['alertname', 'severity'] |
group_wait | Wait time after first alert | 30s |
group_interval | Interval for adding new alerts to group | 5m |
repeat_interval | Resend interval for same alert | 4h |
Multi-Tenant Configuration (for MSPs)
Route different customers to different webhooks:Field Mapping
Easyalert automatically maps Alertmanager fields:| Alertmanager Field | Easyalert 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 |
| All labels | Tags |
Severity Mapping
| Prometheus Label | Easyalert Severity |
|---|---|
critical | critical |
error | high |
warning | warning |
info | info |
Status Handling
| Alertmanager Status | Easyalert Status | Action |
|---|---|---|
| firing | Problem | Creates/updates incident |
| resolved | OK | Resolves incident |
Label → Tag Conversion
All labels from AlertManager are automatically converted to tags. This allows you to use any label for routing.Example Conversion
Labels in alert:Routing Examples
Escalation Routing:Fingerprint and Duplicate Detection
AlertManager generates a unique fingerprint for each alert. Easyalert uses this fingerprint to detect duplicate alerts.How It Works
- When alert arrives, fingerprint is checked
- Same fingerprint + firing status = duplicate (skip)
- Same fingerprint + resolved status = incident is closed
- Different fingerprint = new incident
repeat_interval Setting
repeat_interval determines how often AlertManager resends the same alert:
Alert Rule Examples
Host/VM Monitoring
Kubernetes Alerts
Database Alerts
Deployment Examples
Docker Compose
Kubernetes ConfigMap
Troubleshooting
Alerts not being received
Alerts not being received
- Check AlertManager logs for webhook errors 2. Verify the webhook URL is
accessible from Alertmanager 3. Test connectivity:
curl -X POST YOUR_WEBHOOK_URL -d '{}'4. Check firewall rules between Alertmanager and internet 5. Test config withamtool
Labels not becoming tags
Labels not becoming tags
Resolved alerts not clearing incidents
Resolved alerts not clearing incidents
- Verify
send_resolved: truein webhook config 2. Check that fingerprint matches between firing and resolved 3. Review Alertmanager routing to ensure resolved alerts reach webhook
Duplicate incidents
Duplicate incidents
- Check
group_byconfiguration 2. Verify fingerprint is consistent 3. Reviewgroup_intervalandrepeat_intervalsettings
Connection refused
Connection refused
- Check firewall/network settings 2. Verify AlertManager can reach Easyalert API 3. Test URL access from AlertManager server
Test Command
Best Practices
Use Consistent Severity Labels
Use Consistent Severity Labels
Standardize on
severity: critical|warning|info across all alert rules for
consistent mapping.Include Good Annotations
Include Good Annotations
Add meaningful
summary and description annotations to help responders
understand the alert.Group Related Alerts
Group Related Alerts
Enable Resolved Notifications
Enable Resolved Notifications
Always set
send_resolved: true to automatically resolve incidents.Add Runbook Links
Add Runbook Links
Include
runbook_url annotation for quick access to remediation steps.Use Labels for Routing
Use Labels for Routing
Add labels like
customer, team, environment for escalation routing in
Easyalert.