> ## 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.

# Dynatrace

> Configuring the Dynatrace backend (Managed)

### Getting Started

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

On the left sidebar click on `Apps`, then under `Manage` select `Access Tokens`:

<Frame>
  <img src="https://mintcdn.com/odigos/pHE1teVWLrD8x6Wa/snippets/shared/backends/images/dynatrace1.png?fit=max&auto=format&n=pHE1teVWLrD8x6Wa&q=85&s=9a53c177bf76f5c7bb929c0c0dfdc009" alt="Obtaining access token" width="3808" height="1514" data-path="snippets/shared/backends/images/dynatrace1.png" />
</Frame>

Make sure to add the required capabilities for the access tokens (e.g `Ingest OpenTelemetry traces` for traces).

### Configuring Destination Fields

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

* **DYNATRACE\_URL** `string` : Tenant URL.
  * This field is required
  * Example: `https://{your-environment-id}.live.dynatrace.com`
* **DYNATRACE\_API\_TOKEN** `string` : API Access Token.
  * 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 `Dynatrace` and follow the on-screen instructions
  </Step>
</Steps>

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

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

    ```yaml theme={null}
    apiVersion: odigos.io/v1alpha1
    kind: Destination
    metadata:
      name: dynatrace-example
      namespace: odigos-system
    spec:
      data:
        DYNATRACE_URL: <Tenant URL>
      destinationName: dynatrace
      secretRef:
        name: dynatrace-secret
      signals:
      - TRACES
      - METRICS
      - LOGS
      type: dynatrace

    ---

    apiVersion: v1
    data:
      DYNATRACE_API_TOKEN: <Base64 API Access Token>
    kind: Secret
    metadata:
      name: dynatrace-secret
      namespace: odigos-system
    type: Opaque
    ```
  </Step>

  <Step>
    Apply the YAML using `kubectl`

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