AppDynamics
Add AppDynamics as a health source for Continuous Verification and map application metrics to your Harness service
Configure AppDynamics as a health source so Continuous Verification can collect application metrics during an AI Verify (v1) step.
What you will learn from this topic
How to add AppDynamics as a health source in Continuous Verification
How to map applications, tiers, metric packs, and optional custom metrics
How out-of-the-box (OOTB) metric paths are structured and how to verify them in AppDynamics
Before you begin
Continuous Verification setup: Complete the shared Continuous Verification configuration for your pipeline. Go to Configure Continuous Verification to finish those steps first.
Fixed service and environment: This health source option is available only when you have configured the service and environment as fixed values.
AppDynamics connector: Create or select an AppDynamics connector that can reach your AppDynamics controller.
Add AppDynamics as a health source
A health source maps a Harness service to the service in a deployment environment monitored by an Application Performance Monitoring (APM) or logging tool.
In Health Sources, click Add. The Add New Health Source settings appear.

Perform the following steps to add AppDynamics:
Name the health source and select a connector
In Health Source Name, enter a name for the health source.
Under Connect Health Source, click Select Connector.
In Connector settings, choose an existing connector or click New Connector.

Click Apply Selected. The connector is added to the health source.

Select the feature and open Customize Health Source
In Select Feature, select the APM or logging tool component to use.
Click Next. The Customize Health Source settings appear.
The subsequent settings in Customize Health Source depend on the health source type you selected. You can customize the metrics to map the Harness service to the monitored environment.
Configure Applications and Tiers
In Applications & Tiers, enter the following details:
In Find an AppDynamics application, enter the name of the application and select an option from the list.
In Find an AppDynamics tier, enter a tier name from which you want usage metrics, code exceptions, error conditions, or exit calls.
In Metric Packs, select the metrics you want Harness to monitor. Errors and Performance are selected by default.

Add optional custom metrics
In Custom Metrics (optional), click Add Metric to add any other metric to be monitored.
In Query Specifications and Mapping, customize the query to get the desired output and map it to a Harness service.

In Map Metric(s) to Harness Services, in Metric Name, enter a name for the metric.
In Group Name, enter a group name for the metric.
In AppDynamics Path, either provide the complete metric path in Specify a complete metric path, or provide the base path of the AppDynamics metric in Select the path from the AppD metric.
In Assign, select the services for which you want to apply the metric. Available options are:
Continuous Verification
Health Score
Service Level Indicator (SLI)
In Risk Category, select a risk type from the list.
In Deviation Compared to Baseline, select one of the options based on the selected risk type.
Out-of-the-box metric paths
When you select a metric pack such as Errors or Performance, Harness automatically monitors a set of out-of-the-box (OOTB) metrics from AppDynamics. Each OOTB metric is defined with specific metric paths that determine how Harness queries your AppDynamics controller.
Metric path structure
Each OOTB metric includes two path configurations:
path: The primary metric path used in Harness DSL queries to fetch data during Continuous Verification
validationPath: An alternative path used for validation purposes, typically representing an aggregated view at the tier level
For example, the calls_per_minute metric is defined as follows:
Placeholders such as __tier_name__ and __metric_filter__ are dynamically replaced with the actual values from your health source configuration during execution.
Verify metrics in AppDynamics
To verify the metric paths and validate the data being collected, use one of the following approaches.
Metric Browser
Navigate to the Metric Browser in your AppDynamics controller.
Browse through the metric hierarchy following either the
pathorvalidationPathstructure.For the
calls_per_minuteexample above, navigate to:Business Transaction Performance→Business Transactions→[Your Tier Name]→[Transaction Name]→Calls per Minute
Execution logs
Alternatively, you can verify which metrics Harness is querying by examining the execution logs:
Run an AI Verify (v1) step that uses your AppDynamics health source.
Check the execution logs for external API calls.
Review the API call details for the exact metric paths being queried and the responses received from AppDynamics.
This approach helps you troubleshoot data discrepancies and confirm that Harness is collecting the correct metrics from your AppDynamics environment.
Next steps
Configure Continuous Verification: Finish shared AI Verify (v1) step settings for your pipeline.
AI Verify (v1) overview: Run verification after you add health sources.
Last updated
Was this helpful?
