> 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/harness-ai/use-harness-platform/connectors/monitoring-and-logging-systems/add-an-appdynamics-connector.md).

# Add an AppDynamics connector

Add an AppDynamics connector so Harness can fetch application performance metrics for verification.

AppDynamics is an application performance monitoring (APM) platform that tracks the health and performance of applications, including response times, error rates, and business transactions. Add an AppDynamics connector in Harness to let your pipelines query your AppDynamics data. Harness can then use that data in Continuous Verification to compare application behavior before and after a deployment, helping you confirm a release is healthy or trigger a rollback.

Go to [Overview](https://developer.harness.io/harness-ai/use-harness-platform/connectors/monitoring-and-logging-systems/monitoring-and-logging-systems-connectors-overview.md) for information about all monitoring and logging connectors, such as scopes and delegate selection.

***

## What you will learn from this topic

* How to [add an AppDynamics connector](#add-an-appdynamics-connector) to a Harness project.
* How to configure the [controller URL, account name, and authentication](#credentials) for AppDynamics.

***

## Before you begin

* **AppDynamics access**: An AppDynamics controller and an account, with credentials or an API client.
* **Harness permissions**: Permission to create connectors and secrets in Harness.

***

## Add an AppDynamics connector

You can add an AppDynamics connector at the project, org, or account scope. This procedure covers the project scope, and the process is the same for org and account scope.

1. Open your Harness project.
2. In **Project Settings**, select **Connectors**.
3. Click **New Connector**, then select **AppDynamics** under **Monitoring and Logging Systems**. The AppDynamics connector settings appear.

### Overview

Configure the identity fields for the connector:

1. In **Name**, enter a name for the connector. Harness generates the **Id** from the name.
2. Optionally, add a **Description** and **Tags**.
3. Click **Continue**.

![AppDynamics connector overview settings](https://173309742-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F3F2TpHXhur2QtQnORSM9%2Fuploads%2Fgit-blob-da51ab07f49db6e2d3ee19290217b449a06945bb%2Fappdynamics-connector-overview.png?alt=media)

### Credentials

Configure the following settings:

1. In **Controller URL**, enter the URL of the AppDynamics controller in the format `http://<Controller_Host>:<port>/controller`. For example, `https://xxxx.saas.appdynamics.com/controller`.
2. In **Account Name**, enter the name of the AppDynamics account you want to use. For Harness Self-Managed Enterprise Edition, enter `customer1`.
3. In **Authentication**, select one of the following options:
   * **Username and Password**:
     * For **Username**, enter your AppDynamics account username.
     * For **Password**, select or create a [Harness encrypted text secret](https://developer.harness.io/harness-ai/use-harness-platform/secrets/add-use-text-secrets.md).
   * **API Client**:
     * For **Client Id**, enter the AppDynamics API client Id.
     * For **Secret**, select or create a [Harness encrypted text secret](https://developer.harness.io/harness-ai/use-harness-platform/secrets/add-use-text-secrets.md) that stores the client secret. The client ID and secret are the values the application uses to request a token.
4. Click **Continue**.

![AppDynamics connector credentials with the Username and Password authentication option](https://173309742-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F3F2TpHXhur2QtQnORSM9%2Fuploads%2Fgit-blob-e57f1817be21c88a0221fd1c6a56d93a61d41f09%2Fappdynamics-connector-credentials.png?alt=media)

### Delegates Setup

Select one of the following options:

* **Use any available Delegate**: Harness selects an available delegate at runtime.
* **Only use Delegates with all of the following tags**: Enter the tags of the delegates Harness must use with this connector.

The **Test Delegate Connectivity** list shows the delegates that match your selection. To add a delegate, click **Install new Delegate**.

Click **Save and Continue**.

![AppDynamics connector delegates setup with the delegate connectivity list](https://173309742-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F3F2TpHXhur2QtQnORSM9%2Fuploads%2Fgit-blob-c843f99a4d252c2f752e59c6583f7f6409b3d73f%2Fappdynamics-connector-delegates-setup.png?alt=media)

### Verify Connection

Click **Finish** after the connection test succeeds. The connector is listed in **Connectors** page.

***

## Sample YAML

The following example shows a YAML for the AppDynamics connector created in this topic.

<details>

<summary>YAML - AppDynamics connector</summary>

```yaml
connector:
  name: your-appdynamics-connector # Replace with a name for your connector
  identifier: yourappdynamicsconnector # Replace with a unique identifier
  description: ""
  accountIdentifier: youraccountidentifier # Replace with your Harness account identifier
  orgIdentifier: default # Replace with your organization identifier, or remove for account scope
  projectIdentifier: yourprojectidentifier # Replace with your project identifier, or remove for org/account scope
  type: AppDynamics
  spec:
    username: your-appdynamics-username # Replace with your AppDynamics username
    accountname: your-appdynamics-account # Replace with your AppDynamics account name
    controllerUrl: your-appdynamics-url # Replace with the URL of your AppDynamics controller
    ignoreTestConnection: false # Set to true only to skip connector preflight checks
    passwordRef: your-password-secret # Replace with a reference to the Harness secret storing your password
    authType: UsernamePassword # Authentication type for Username and Password
```

</details>

For the full connector YAML schema, including how to skip connector preflight checks, go to [Create a connector using YAML](https://developer.harness.io/harness-ai/use-harness-platform/connectors/create-a-connector-using-yaml.md).

***

## Next steps

* [Use delegate selectors](https://developer.harness.io/harness-ai/use-harness-platform/delegates/delegate/manage-delegates/select-delegates-with-selectors.md): Control which delegates can connect to this connector.
* [Add a text secret](https://developer.harness.io/harness-ai/use-harness-platform/secrets/add-use-text-secrets.md): Store connector credentials as Harness secrets.
