Troubleshoot AppDynamics data source issues
This document provides guidance for troubleshooting common issues when configuring and using the AppDynamics data source in Grafana.
Before you begin
Before investigating specific errors, verify that the data source health check passes:
- Click Connections in the left-side menu.
- Click Data sources and select your AppDynamics data source.
- Click Save & test.
- Confirm you see the success message: Data source is working, found N apps.
If the health check fails, start with the Configuration errors or Authentication errors sections.
Configuration errors
Configuration errors occur when required fields are missing or incomplete.
“The configuration setup is incomplete”
This error indicates that one or more required configuration fields are missing.
Possible causes:
- No URL configured
- No credentials configured (neither basic authentication nor API client)
- Partial API client credentials (missing client name, domain, or secret)
- Partial basic authentication (missing username or password)
Solutions:
- Verify the URL field contains your AppDynamics controller URL, for example
https://mycompany.saas.appdynamics.com. - Ensure all required credential fields are filled:
- For basic authentication: User and Password
- For API client authentication: Client Name, Client Domain, and Client Secret
- Click Save & test to verify the configuration.
Authentication errors
Authentication errors occur when there are issues with your credentials, permissions, or token handling.
“The credentials are incorrect” or “Unauthorized (401)”
The full error from the plugin is: The credentials are incorrect. Check that the API key, or username and password, are correct.
Possible causes:
- Incorrect username or password
- Invalid API client secret
- Wrong client name or domain
- Insufficient permissions
Solutions:
- Verify the credentials match what is configured in the AppDynamics Administration settings.
- For API client authentication, verify the Client Name matches the API client name in AppDynamics, and the Client Domain matches your company name from the controller URL.
- Regenerate the client secret in the AppDynamics Controller UI if needed and update the data source configuration.
- Ensure the user or API client role has
viewaccess to Account, Applications, Databases, and Analytics.
“Token has expired”
This error indicates that the OAuth token used for API client authentication has expired.
Possible causes:
- API client secret has been rotated
- API client has been deleted or deactivated
- Token refresh failed
Solutions:
- Regenerate the client secret in the AppDynamics Controller UI.
- Update the Client Secret in the Grafana data source configuration.
- Click Save & test to verify the new credentials work.
- If the issue persists, verify the API client is still active in AppDynamics and has the correct role assigned.
“Empty auth token received” or “No authentication response received”
The AppDynamics controller returned an empty or missing authentication token.
Possible causes:
- API client credentials are incorrect
- The AppDynamics controller rejected the token request
- Network issues interrupted the authentication handshake
Solutions:
- Verify the Client Name, Client Domain, and Client Secret are correct.
- Check that the API client is active and has the correct role assigned in AppDynamics.
- Verify network connectivity from the Grafana server to the AppDynamics controller.
- Click Save & test to retry authentication.
Connection errors
Connection errors occur when Grafana can’t reach the AppDynamics controller or Analytics endpoint.
“Could not connect to AppDynamics”
The full error from the plugin is: Could not connect to AppDynamics. This usually happens when the URL is incorrect.
Possible causes:
- Incorrect URL format
- Extra path in the URL (such as
/controller) - Network connectivity issues
Solutions:
- Verify the URL format is correct:
https://<COMPANY>.saas.appdynamics.com. - Ensure the URL doesn’t include a trailing path like
/controller. - Test network connectivity from the Grafana server to the AppDynamics controller.
- Check that firewall rules allow outbound HTTPS (port 443).
Connection timeout or “no response received from AppDynamics”
The connection to AppDynamics took too long to establish.
Possible causes:
- Network connectivity issues
- Firewall blocking the connection
- AppDynamics service is experiencing issues
Solutions:
- Verify network connectivity from the Grafana server to AppDynamics.
- Ensure your firewall allows outbound connections to your AppDynamics controller on port 443.
- If using Private data source connect (PDC), verify the PDC agent is running and connected. For more information, refer to Private data source connect (PDC).
- If timeouts occur only for certain queries, try narrowing the time range to reduce data volume.
Query errors
Query errors occur when executing queries against the Metrics or Analytics APIs.
“empty metric query”
No metric has been selected in the query editor.
Solutions:
- Ensure you’ve selected an Application in the query editor.
- Select a Metric path from the available metrics.
“HTML response received from data source API”
The AppDynamics controller returned an error page instead of JSON data.
Possible causes:
- Incorrect URL
- AppDynamics controller is down or experiencing issues
- The selected application or metric no longer exists
Solutions:
- Verify the URL in the data source configuration is correct.
- Check that the AppDynamics controller is running and accessible.
- Ensure the selected application and metric path still exist in AppDynamics.
“(500) error parsing query, or error with no additional context received” (Analytics)
An Analytics (ADQL) query has a syntax error or references invalid data. AppDynamics returns HTTP 500 errors for query parsing failures without detailed error context.
Possible causes:
- ADQL syntax error (missing keyword, unmatched quotes, invalid function)
- Invalid table or field name in the query
- Analytics API is unavailable
Solutions:
- Verify your ADQL syntax. Refer to the ADQL documentation.
- Check that table and field names in the query are correct and exist in your Analytics schema. Use the autocomplete feature in the query editor to verify available tables and fields.
- Simplify the query to isolate the syntax issue (for example, start with
SELECT count(*) FROM transactions). - Verify the Analytics API connection by clicking Save & test in the data source settings.
“Number of intervals in aggregation is too large”
The query time range is too wide for the selected aggregation interval.
Solutions:
- Narrow the dashboard time range to reduce the number of data points.
- Increase the aggregation interval in your query.
- Break the query into smaller time windows.
“Event type does not exist for account [X] and event type [Y]”
An Analytics query references a table or event type that doesn’t exist or isn’t accessible for the configured account.
Possible causes:
- AppDynamics Analytics license doesn’t cover the requested data
- The table hasn’t been created yet
- Incorrect Global Account Name in the data source configuration
- The event type name is misspelled in the ADQL query
Solutions:
- Verify that the table name in your ADQL query (for example,
transactions,browser_records) is correct. - Check that the Global Account Name in the data source configuration matches your account. You can find it in the AppDynamics Controller UI under Settings > License > Account.
- Verify that your AppDynamics Analytics license covers the data you’re trying to query.
- Ensure data has been pushed to the table or event type you’re querying.
“invalid/empty analytics query received”
The Analytics query field is empty.
Solutions:
- Enter a valid ADQL query in the query editor. For example:
SELECT count(*) FROM transactions.
No data returned
Your query executes without error but returns no results.
Possible causes:
- The time range filter excludes all data
- Wrong application or metric selected
- The user or API client lacks
viewaccess to the specific application
Solutions:
- Expand the Grafana time range to verify data exists.
- Verify you’ve selected the correct application and metric path.
- Check that the user or API client has
viewaccess to the application in AppDynamics.
Template variable errors
These errors occur when using template variables with the data source.
Variables return no values
Possible causes:
- Data source connection is not working
- Variable query doesn’t match a supported pattern
- Parent variables (for cascading variables) don’t have valid selections
Solutions:
- Verify the data source connection is working by clicking Save & test in the data source settings.
- Check that the variable query matches a supported pattern (for example,
Applications,AppName.Tiers). Refer to the template variables documentation for supported patterns. - For cascading variables, ensure parent variables have valid selections.
- Verify the identity has permissions to list the requested resources.
“Templating must be one of Applications, AppName.BusinessTransactions, AppName.Tiers, AppName.Nodes, AppName.Path”
The variable query uses an unsupported pattern.
Possible causes:
- Misspelled query keyword (for example,
Tierinstead ofTiers) - Missing application name before the
.separator - Invalid query format
Solutions:
- Verify the query matches one of the supported patterns exactly. Supported patterns are case-sensitive.
- For application-specific queries, ensure the application name or variable precedes the
.(for example,MyApp.Tiers, not justTiers). - Refer to the template variables documentation for the complete list of supported patterns and examples.
Multi-value variables replace values with * in Metrics
This is expected behavior. Multi-value variables aren’t supported in Metrics queries. If multi-value variables are found in a metric path, they’re replaced with *, which matches all values.
To use multi-value variables, use an Analytics (ADQL) query instead:
SELECT distinct(transactionName), count(*) FROM transactions WHERE transactionName IN (${transactionName:doublequote})Debug tips
Use these techniques to gather more information when diagnosing issues.
Enable query inspector
To view the executed query and response:
- Open your dashboard panel.
- Click the panel title and select Inspect > Query.
- Review the request and response for error details.
Check Grafana server logs
For detailed error information:
- Access your Grafana server logs.
- Search for
appdynamicsto find relevant log entries. - Look for error messages and stack traces that provide more context.
To enable debug-level logging:
Set the Grafana log level to
debugin the configuration file:[log] level = debugReview logs in
/var/log/grafana/grafana.log(or your configured log location).Reset the log level to
infoafter troubleshooting to avoid excessive log volume.
Get additional help
If you continue to experience issues after following this troubleshooting guide:
Check the AppDynamics documentation for platform-specific guidance.
Review the Grafana community forums for similar issues.
Contact Grafana Support if you’re a Grafana Enterprise, Cloud Pro, or Cloud Advanced user.
When reporting issues, include:
- Grafana version and plugin version
- Authentication method (basic authentication or API client)
- Error messages (redact sensitive information like tokens and passwords)
- Steps to reproduce
- Relevant configuration (redact credentials)



