> For the complete documentation index, see [llms.txt](https://developer.harness.io/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://developer.harness.io/ai-sre/ai-sre-for-administrators/set-up-alert-management/webhooks/templates/monitoring/new-relic.md).

# New Relic Integration Webhook Template

Configure New Relic integration to receive NRQL alerts and APM monitoring in Harness AI SRE.

### Overview <a href="#overview" id="overview"></a>

New Relic provides:

* **NRQL alerts:** Query-based alerting on any data
* **Entity correlation:** Link alerts to monitored entities
* **Service mapping:** Automatic service discovery
* **Golden signals:** Pre-built SLI monitoring
* **APM integration:** Application performance tracking

***

### Set up New Relic integration <a href="#set-up-new-relic-integration" id="set-up-new-relic-integration"></a>

Complete the following steps to connect New Relic to Harness AI SRE:

1. Navigate to **Integrations** in the main menu.
2. Click **New Integration**.
3. Select **New Relic** from the template options.
4. Enter a name and generate an ID.
5. Copy the generated webhook URL.
6. In your New Relic account, configure a webhook notification channel pointing to the copied URL.
7. Configure payload mapping to match New Relic incident fields to Harness AI SRE fields.
8. Set up route alerts to route and filter incoming New Relic incidents.

***

### Example alert payload <a href="#example-alert-payload" id="example-alert-payload"></a>

```json
{
  "incident": {
    "id": 123456789,
    "condition_id": 87654321,
    "condition_name": "High Error Rate",
    "policy_id": 543219876,
    "policy_name": "Production API Policy",
    "severity": "critical",
    "state": "open",
    "timestamp": 1647446400,
    "url": "https://alerts.newrelic.com/accounts/12345/incidents/123456789"
  },
  "details": {
    "message": "Error rate exceeded 5% threshold",
    "duration": 300,
    "threshold": 5.0,
    "trigger_time": "2025-03-16T15:00:00Z"
  },
  "targets": [
    {
      "id": "MXxBUE18QVBQTElDQVRJT058MTIzNDU2Nzg5",
      "name": "Production API",
      "type": "application",
      "product": "APM",
      "link": "https://rpm.newrelic.com/accounts/12345/applications/987654321"
    }
  ]
}
```

***

### Next steps <a href="#next-steps" id="next-steps"></a>

* Go to [Route Alerts](/ai-sre/ai-sre-for-administrators/set-up-alert-management/alert-rules/overview.md) to route New Relic alerts.
* Go to [Ingest Alerts Overview](/ai-sre/ai-sre-for-administrators/set-up-alert-management/webhooks/templates/overview.md) to view other integrations.
