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

# AppDynamics

> Configuring the AppDynamics backend (Managed)

### Getting Started

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

1. [Register](https://accounts.appdynamics.com/trial)/[Login](https://login.appdynamics.com/sso/authenticate) to AppDynamics.
2. Navigate to the OpenTelemetry Configuration page
3. Click on `Processors`, you'll find 3 attributes, locate `appdynamics.controller.account` and copy its value, this is your `Account Name`.
4. Click on `Exporters`, copy the `Endpoint`, and generate an `API Key`.

### Configuring Destination Fields

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

* **APPDYNAMICS\_APPLICATION\_NAME** `string` : Application Name. Will define a namespace in AppDynamics
  * This field is optional
* **APPDYNAMICS\_ACCOUNT\_NAME** `string` : Account Name.
  * This field is required
* **APPDYNAMICS\_ENDPOINT\_URL** `string` : Endpoint URL.
  * This field is required
* **APPDYNAMICS\_API\_KEY** `string` : API Key.
  * 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 `AppDynamics` and follow the on-screen instructions
  </Step>
</Steps>

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

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

    ```yaml theme={null}
    apiVersion: odigos.io/v1alpha1
    kind: Destination
    metadata:
      name: appdynamics-example
      namespace: odigos-system
    spec:
      data:
        APPDYNAMICS_ACCOUNT_NAME: <Account Name>
        APPDYNAMICS_ENDPOINT_URL: <Endpoint URL>
        # Note: The commented fields below are optional.
        # APPDYNAMICS_APPLICATION_NAME: <Application Name>
      destinationName: appdynamics
      secretRef:
        name: appdynamics-secret
      signals:
      - TRACES
      - METRICS
      - LOGS
      type: appdynamics

    ---

    apiVersion: v1
    data:
      APPDYNAMICS_API_KEY: <Base64 API Key>
    kind: Secret
    metadata:
      name: appdynamics-secret
      namespace: odigos-system
    type: Opaque
    ```
  </Step>

  <Step>
    Apply the YAML using `kubectl`

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