Overview
New Relic is a full-stack observability platform. EasyContact supports both New Relic Workflows (recommended) and Classic Alerts formats for receiving incident notifications.New Relic Workflows is the recommended method for new integrations. Classic Alerts is deprecated but still supported.
Setup Instructions (Workflows)
1
Create Integration in EasyContact
- Go to Configuration → Integrations
- Click Add Integration
- Select New Relic as the type
- Enter a name (e.g., “Production New Relic”)
- Save and copy the webhook URL
2
Create Destination in New Relic
- Go to Alerts & AI → Destinations
- Click Add destination
- Select Webhook
- Enter your EasyContact webhook URL
- Save the destination
3
Create Workflow
- Go to Alerts & AI → Workflows
- Click Add workflow
- Configure filter (which issues to send)
- Add your webhook destination
- Configure the payload template
4
Test the Integration
Use the Send test notification feature
Workflow Configuration
Destination Setup
| Field | Value |
|---|---|
| Type | Webhook |
| Endpoint URL | Your EasyContact webhook URL |
| Method | POST |
Recommended Payload Template
Handlebars Variables
New Relic Workflows use Handlebars syntax:| Variable | Description |
|---|---|
{{ issueId }} | Unique issue identifier |
{{ issuePageUrl }} | Link to issue in New Relic |
{{ annotations.title.[0] }} | Issue title |
{{ annotations.description.[0] }} | Issue description |
{{ priority }} | CRITICAL, HIGH, MEDIUM, LOW |
{{ state }} | ACTIVATED, ACKNOWLEDGED, CLOSED |
{{ triggerEvent }} | STATE_CHANGE, INCIDENT_ADDED, etc. |
{{ createdAt }} | Creation timestamp |
{{ updatedAt }} | Last update timestamp |
{{ totalIncidents }} | Number of incidents |
{{ entitiesData.names }} | Impacted entity names |
{{ accumulations.policyName }} | Alert policy names |
{{ accumulations.conditionName }} | Alert condition names |
{{ accumulations.source }} | Alert sources |
{{ accumulations.tag.* }} | Custom tags |
Field Mapping
Workflows Format
| New Relic Field | EasyContact Field |
|---|---|
issueId | Event ID |
annotations.title[0] | Title |
annotations.description[0] | Description |
priority | Severity |
state | Status |
entitiesData.names | Host/Service |
issuePageUrl | URL |
accumulations.tag.* | Tags |
Classic Alerts Format
| New Relic Field | EasyContact Field |
|---|---|
incident_id | Event ID |
condition_name | Title |
details | Description |
severity | Severity |
current_state | Status |
targets[0].name | Host |
incident_url | URL |
Severity Mapping
Workflows Priority Mapping
| New Relic Priority | EasyContact Severity |
|---|---|
| CRITICAL | Critical |
| HIGH | High |
| MEDIUM | Warning |
| LOW | Info |
Classic Severity Mapping
| New Relic State | EasyContact Severity |
|---|---|
| critical | Critical |
| warning | Warning |
Status Handling
Workflows States
| New Relic State | EasyContact Status |
|---|---|
| ACTIVATED | Problem |
| CREATED | Problem |
| ACKNOWLEDGED | Problem (acknowledged) |
| CLOSED | OK |
| DEACTIVATED | OK |
Trigger Events
| Trigger Event | Description |
|---|---|
| STATE_CHANGE | Issue state changed |
| INCIDENT_ADDED | New incident added to issue |
| INCIDENT_CLOSED | Incident closed |
| PRIORITY_CHANGED | Priority updated |
| ACKNOWLEDGED | Issue acknowledged |
Example Payloads
Workflows Payload
Classic Alerts Payload
Classic Alerts Setup
For legacy New Relic alerts:1
Create Notification Channel
- Go to Alerts → Notification channels
- Click New notification channel
- Select Webhook
2
Configure Webhook
- Channel name: EasyContact
- Base URL: Your EasyContact webhook URL
3
Add to Policies
- Go to your alert policy
- Add the webhook channel to notification settings
Enrichment Examples
Workflow Filter Examples
Critical Issues Only
Specific Policies
Specific Entity Types
Troubleshooting
Webhooks not being received
Webhooks not being received
- Test destination from New Relic UI
- Verify workflow filter matches your issues
- Check workflow is enabled
- Verify destination URL is correct
Missing fields in payload
Missing fields in payload
- Verify Handlebars template syntax
- Check field names match New Relic schema
- Use
{{ json fieldName }}for proper formatting - Test with simplified payload first
Issues not auto-resolving
Issues not auto-resolving
- Verify CLOSED state triggers workflow
- Check
issueIdmatches between states - Ensure workflow sends on all state changes
Wrong priority mapping
Wrong priority mapping
- Check priority field in payload
- Configure custom severity mapping
- Verify priority is set on alert conditions
Best Practices
Use Workflows
Use Workflows
Migrate to Workflows for better control and flexibility over Classic Alerts.
Include Entity Data
Include Entity Data
Add
entitiesData.names to identify affected infrastructure or services.Set Proper Priorities
Set Proper Priorities
Configure priority on your alert conditions for accurate severity mapping.
Include Runbook URLs
Include Runbook URLs
Add runbook links in alert conditions for quick remediation access.
Use Tags
Use Tags