Skip to main content

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

  1. Go to Integrations page from left menu
  2. Click Add Integration button
  3. Select Prometheus as Source Type
  4. Enter a name (e.g., Kubernetes Prometheus)
  5. Click Create to save
  6. 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

Set send_resolved: true in your webhook config to automatically resolve incidents when alerts clear.

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:
Available tags in Easyalert:

Routing Examples

Escalation Routing:
Notification Rules:

Fingerprint and Duplicate Detection

AlertManager generates a unique fingerprint for each alert. Easyalert uses this fingerprint to detect duplicate alerts.

How It Works

  1. When alert arrives, fingerprint is checked
  2. Same fingerprint + firing status = duplicate (skip)
  3. Same fingerprint + resolved status = incident is closed
  4. Different fingerprint = new incident

repeat_interval Setting

repeat_interval determines how often AlertManager resends the same alert:
Thanks to duplicate detection, even if AlertManager resends the same alert, a new incident won’t be created.

Alert Rule Examples

Host/VM Monitoring

Kubernetes Alerts

Database Alerts


Deployment Examples

Docker Compose

Kubernetes ConfigMap


Troubleshooting

  1. 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 with amtool
  1. Verify alert rules include required labels 2. Check that labels aren’t being dropped by Alertmanager routes 3. Review group_by settings
  1. Verify send_resolved: true in webhook config 2. Check that fingerprint matches between firing and resolved 3. Review Alertmanager routing to ensure resolved alerts reach webhook
  1. Check group_by configuration 2. Verify fingerprint is consistent 3. Review group_interval and repeat_interval settings
  1. Check firewall/network settings 2. Verify AlertManager can reach Easyalert API 3. Test URL access from AlertManager server

Test Command


Best Practices

Standardize on severity: critical|warning|info across all alert rules for consistent mapping.
Add meaningful summary and description annotations to help responders understand the alert.
Always set send_resolved: true to automatically resolve incidents.
Add labels like customer, team, environment for escalation routing in Easyalert.