New Relic Integration Guide
Send alert conditions through webhooks.
Configure New Relic Alerts to send webhook notifications to Harness AI SRE when issues are created or updated.
Before you begin
Harness webhook endpoint: Create a New Relic webhook in Harness AI SRE using the New Relic webhook template.
New Relic access: Permissions to create workflows and notification destinations.
Webhook URL: Copy the webhook URL from your Harness webhook configuration.
New Relic version: This guide covers New Relic's Applied Intelligence workflows (current notification system).
Workflows documentation: Go to Applied Intelligence - Workflows to understand workflow configuration.
Webhook destination reference: Go to Notification Destinations for webhook setup details.
Create webhook destination
Navigate to destinations
Open the destinations configuration in New Relic:
In New Relic, go to Alerts & AI, then select Destinations
Click Create destination
Configure webhook destination
Destination name:
Harness AI SREDestination type: Select Webhook
Endpoint URL: Your Harness webhook URL
https://<your-harness-instance>/gateway/ai-sre/api/webhooks/<webhook-id>Authentication: None (or Bearer token if required)
Destination name:
Harness AI SREDestination type: Select Webhook
Endpoint URL: Your Harness webhook URL
Authentication: Select Bearer token
Token:
your-webhook-secret
Or use Custom headers:
Header name:
X-Webhook-SecretHeader value:
your-secret-key
Destination name:
Harness AI SREDestination type: Select Webhook
Endpoint URL: Your Harness webhook URL
Custom payload: Enable
Payload template:
{
"issue_id": "{{ issueId }}",
"issue_title": "{{ issueTitle }}",
"priority": "{{ priority }}",
"state": "{{ state }}",
"trigger_event": "{{ triggerEvent }}",
"issue_url": "{{ issuePageUrl }}",
"violation_chart_url": "{{ violationChartUrl }}",
"created_at": "{{ createdAt }}",
"updated_at": "{{ updatedAt }}",
"account_id": "{{ nrAccountId }}",
"account_name": "{{ nrAccountName }}",
"entity_name": "{{ entitiesData.entities.[0].name }}",
"entity_type": "{{ entitiesData.entities.[0].type }}",
"condition_name": "{{ accumulations.conditionName.[0] }}",
"policy_names": {{ json accumulations.policyName }},
"labels": {{ json labelsObject }}
}Test destination
Click Test connection to verify the webhook is reachable.
Save destination
Click Create destination to save.
Create notification channel
Navigate to channels
Open the channels configuration in New Relic:
Go to Alerts & AI, then select Channels
Click Create channel
Configure channel
Set the channel name, destination, and triggers:
Channel name:
Harness AI SRE ChannelDestination: Select Harness AI SRE (the destination you just created)
Notification trigger: Select events to send
Issue activated
Issue acknowledged
Issue priority changed
Issue closed
Save channel
Click Create channel.
Create workflow
Navigate to workflows
Open the workflows configuration in New Relic:
Go to Alerts & AI, then select Workflows
Click Add a workflow
Configure workflow
Workflow name:
Send to Harness AI SREFilter data: Configure filters (optional)
Filter by priority:
CriticalorHighFilter by entity type:
Application,Host, etc.
Enrich data: Add enrichments (optional)
Notify: Select Harness AI SRE Channel
Workflow name:
Critical Alerts to HarnessFilter data:
Attribute:
priorityOperator:
isValue:
Critical
Notify: Select Harness AI SRE Channel
Workflow name:
Enriched Alerts to HarnessFilter data: Configure filters
Enrich data:
Add NRQL query to enrich with additional metrics
Add Image to include chart snapshots
Notify: Select Harness AI SRE Channel
Activate workflow
Toggle Active to enable the workflow.
Save workflow
Click Save workflow.
Configure field mapping in Harness
In your Harness webhook configuration, map New Relic payload fields to alert properties.
New Relic webhook payload structure
Map basic fields
Use Mustache templates:
Advanced field mapping with CEL
Test the integration
Create test alert condition
Create a condition that fires immediately to confirm delivery:
Go to Alerts & AI, then select Alert policies
Create a test policy and condition that will fire immediately
Assign the workflow to the policy
Trigger the condition
Wait for the condition to evaluate and create an issue.
Verify in New Relic
Confirm the issue was created and the notification was sent:
Go to Alerts & AI, then select Issues & Activity
Verify the issue was created
Check Workflows to see notification sent
Verify in Harness
Confirm the issue arrived and mapped correctly:
Navigate to Alerts in Harness AI SRE
Check that the issue appears
Verify field mapping is correct
Available New Relic fields
id
Issue ID
issue-123
issueId
Issue ID (same as id)
issue-123
issueTitle
Issue title
High Error Rate on Application XYZ
issuePageUrl
Link to issue
https://one.newrelic.com/issues/...
priority
Issue priority
CRITICAL, HIGH, MEDIUM, LOW
state
Issue state
ACTIVATED, ACKNOWLEDGED, CLOSED, UPDATED
triggerEvent
Event type
STATE_CHANGE, PRIORITY_CHANGED
createdAt
Creation timestamp (ms)
1625097600000
updatedAt
Last update timestamp (ms)
1625097600000
violationChartUrl
Chart image URL
https://chart.googleapis.com/...
nrAccountId
New Relic account ID
12345
nrAccountName
Account name
My Company
entitiesData.entities
Affected entities array
[{id, name, type}]
accumulations.conditionName
Condition names
["Error rate > 5%"]
accumulations.policyName
Policy names
["Production Alerts"]
labelsObject
Key-value labels
{"environment": "production"}
Advanced configuration
Filter by priority
Create separate workflows for different priorities:
Critical issues:
Filter:
priorityisCriticalChannel:
Harness Critical
High issues:
Filter:
priorityisHighChannel:
Harness High
Filter by entity type
Route alerts based on entity type:
Application issues:
Filter:
entitiesData.entities.typecontainsAPPLICATIONChannel:
Harness Applications
Infrastructure issues:
Filter:
entitiesData.entities.typecontainsHOSTChannel:
Harness Infrastructure
Enrich with NRQL queries
Add custom data to webhooks:
In workflow Enrich data step
Add NRQL enrichment
Query:
Reference in custom payload:
Include chart images
Add visual context:
In workflow Enrich data step
Add Image enrichment
Select chart or dashboard
Reference in payload:
{{ imageUrl }}
Troubleshooting
Example: complete integration
New Relic destination
Configure the destination with these settings:
Name: Harness AI SRE
Type: Webhook
URL:
https://app.harness.io/gateway/ai-sre/api/webhooks/wh_abc123Custom payload: Enabled (see custom payload tab above)
New Relic workflow
Configure the workflow with these settings:
Name: Critical & High Alerts to Harness
Filter:
Attribute:
priorityOperator:
is one ofValues:
Critical,High
Enrich:
Add Image enrichment with violation chart
Notify: Harness AI SRE Channel
Status: Active
Map fields in the Harness webhook
Next steps
Route alerts: Route and deduplicate New Relic issues.
Use CEL in webhooks: Add custom filtering logic.
AI agent: Enable automated issue investigation.
New Relic template: Use the pre-configured template.
Related documentation
New Relic official documentation
Applied Intelligence workflows: Complete guide to workflow configuration, destinations, and channels.
Notification destinations: Webhook destination setup and authentication options.
Message templates: Available template variables (
{{issueId}},{{priority}},{{entitiesData}}, and others).Customize webhook payload: Complete payload structure and issue fields reference.
Last updated
Was this helpful?