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

# New Relic

> Configuring the New Relic backend (Managed)

### Getting Started

<img src="https://d15jtxgb40qetw.cloudfront.net/newrelic.svg" alt="newrelic" className="not-prose h-20" />

**Obtaining a License Key**<br />
On the left sidebar, click on your account name and select **API Keys** and then click on **Create a key**.

<Frame>
  <img src="https://mintcdn.com/odigos/pHE1teVWLrD8x6Wa/snippets/shared/backends/images/newrelic1.png?fit=max&auto=format&n=pHE1teVWLrD8x6Wa&q=85&s=11888f0e65ddb12403e887acd2b8f763" alt="New Relic API keys" width="494" height="481" data-path="snippets/shared/backends/images/newrelic1.png" />
</Frame>

For key type select **Ingest - License**, give a name to your key and press **Create a key**.

<Frame>
  <img src="https://mintcdn.com/odigos/pHE1teVWLrD8x6Wa/snippets/shared/backends/images/newrelic2.png?fit=max&auto=format&n=pHE1teVWLrD8x6Wa&q=85&s=4e8c022b81cd8287902d373ac2f2e1b4" alt="Create an API key screen in New Relic" width="457" height="738" data-path="snippets/shared/backends/images/newrelic2.png" />
</Frame>

### Configuring Destination Fields

<Accordion title="Supported Signals:">
  ✅ Traces
  ✅ Metrics
  ✅ Logs
  ❌ Profiles
</Accordion>

* **NEWRELIC\_API\_KEY** `string` : License Key.
  * This field is required
* **NEWRELIC\_ENDPOINT** `string` : Endpoint.
  * This field is required

### Adding Destination to Odigos

There are two primary methods for configuring destinations in Odigos:

##### **Using the UI**

<Steps>
  <Step>
    Use the [Odigos CLI](https://docs.odigos.io/cli/odigos_ui) to access the UI

    ```bash theme={null}
    odigos ui
    ```
  </Step>

  <Step>
    Click on `Add Destination`, select `New Relic` and follow the on-screen instructions
  </Step>
</Steps>

##### **Using Kubernetes manifests**

<Steps>
  <Step>
    Save the YAML below to a file (e.g. `newrelic.yaml`)

    ```yaml theme={null}
    apiVersion: odigos.io/v1alpha1
    kind: Destination
    metadata:
      name: newrelic-example
      namespace: odigos-system
    spec:
      data:
        NEWRELIC_ENDPOINT: '<Endpoint (options: [https://otlp.nr-data.net, https://otlp.eu01.nr-data.net])>'
      destinationName: newrelic
      secretRef:
        name: newrelic-secret
      signals:
      - TRACES
      - METRICS
      - LOGS
      type: newrelic

    ---

    apiVersion: v1
    data:
      NEWRELIC_API_KEY: <Base64 License Key>
    kind: Secret
    metadata:
      name: newrelic-secret
      namespace: odigos-system
    type: Opaque
    ```
  </Step>

  <Step>
    Apply the YAML using `kubectl`

    ```bash theme={null}
    kubectl apply -f newrelic.yaml
    ```
  </Step>
</Steps>
