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
1
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...
2
Configure Alertmanager
Edit your
alertmanager.yml file:3
Reload Alertmanager
Apply the configuration:
4
Test the Integration
Trigger a test alert and verify it appears in Easyalert
Alertmanager Configuration
Route Parameters
Multi-Tenant Configuration (for MSPs)
Route different customers to different webhooks:Field Mapping
Easyalert automatically maps Alertmanager fields:Severity Mapping
Status Handling
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
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.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.
