> ## Documentation Index
> Fetch the complete documentation index at: https://www.courier.com/docs/llms.txt
> Use this file to discover all available pages before exploring further.

> ## Agent Instructions
> Install the Courier skill before writing code: `npx skills add trycourier/courier-skills`. It carries the verified SDK shapes and the rules you cannot get wrong.
> Authenticate every request with `Authorization: Bearer <API_KEY>`. A workspace has several environments and each has its own keys, which are plain `pk_` strings with no environment prefix. Start with Test.
> Send with `client.send.message` from the Node SDK (`@trycourier/courier` v7 and later, where the client is the default import). Reference a template by its `nt_` id or its alias.
> A send accepts a bare Elemental element list, but storing content on a template requires the top-level elements wrapped in a channel element.
> Templates and journeys can be built in the Courier app or created through the API. Either way they live in the workspace and are referenced by ID when you send.
> The hosted MCP server is https://mcp.courier.com. For a briefing on what Courier is and when to use it, read https://www.courier.com/llms.txt.
> Prefer the Guides tab for how-do-I questions and the Docs tab for how-does-it-behave questions. The API reference lives under /api-reference.

# Forward Courier events to New Relic

> Forward delivery metrics and message logs to New Relic with your license key.

export const Doc = ({href, children, name, bare}) => {
  const label = children || name || href;
  if (bare) {
    return <a href={href}>{label}</a>;
  }
  return <a className="cx-endpoint" data-kind="doc" href={href}>
      <span className="cx-endpoint-label">{label}</span>
      <span className="cx-endpoint-method">DOC</span>
    </a>;
};

## Prerequisites

* [A New Relic account](https://newrelic.com/)
* [Your New Relic License key](https://one.newrelic.com/api-keys)

## Setup

<Steps>
  <Step title="Get your New Relic license key">
    In New Relic, open [API keys](https://one.newrelic.com/api-keys) and copy your license key.
  </Step>

  <Step title="Configure in Courier">
    In Courier, open the New Relic channel on the Channels page and enter your License key in the API Key field.
  </Step>
</Steps>

## New Relic metrics endpoint

Optionally set a [Metrics Endpoint](https://docs.newrelic.com/docs/data-apis/ingest-apis/metric-api/report-metrics-metric-api/#api-endpoint) for the integration. Courier defaults to the United States (US) endpoint.

## New Relic logs endpoint

Optionally set a [Logs Endpoint](https://docs.newrelic.com/docs/logs/log-api/introduction-log-api/#endpoint) for the integration. Courier defaults to the United States (US) endpoint.

## Metrics

New Relic receives the same `courier.*` metrics as every other observability integration: messages, channels, automations, lists, users, audiences, and inbox connections. The names are identical. See the full list on the <Doc href="/docs/integrations/observability/datadog#available-datadog-metrics">Datadog page</Doc>.

## Dashboard

Download the Courier New Relic dashboard to monitor Courier inside New Relic.

[Download Dashboard JSON](https://github.com/trycourier/shareable/blob/main/courier-new-relic-dashboard.json)

## Dashboard preview

<Frame caption="New Relic Dashboard">
  <img src="https://mintcdn.com/courier-4f1f25dc/xDJPBS8EQ58X_0-v/assets/new-relic-dashboard.webp?fit=max&auto=format&n=xDJPBS8EQ58X_0-v&q=85&s=22a46b12eb2997203ee2e2c04f82473e" alt="New Relic Dashboard" width="2874" height="1348" data-path="assets/new-relic-dashboard.webp" />
</Frame>
