Connect to Dynatrace

Updated at:

The Dynatrace connector connects STAROps to the MCP server provided by Dynatrace. Connect a Dynatrace environment to your Digital Employee with an access token. Sessions and long-running tasks can then access metrics, logs, entities, problems, and vulnerability data in that environment.

Prerequisites

  • You have created a Digital Employee.

  • You have a Dynatrace environment and a Dynatrace token that can read the target data and call the Dynatrace MCP server. A token cannot have more permissions than the user it belongs to.

  • The target environment contains data to analyze.

    For instructions about how to create a Dynatrace token, see Dynatrace API authentication. For details about the available capabilities and the permissions that they require, see Dynatrace MCP server.

Limits

The following limits apply to the Dynatrace connector:

  • No agent required — The connector does not require an environment agent to establish the connection.

  • No scope selection — The connector does not provide scope selection.

  • No toolset selection — The connector does not provide toolset selection. The tool catalog determines the available capabilities when the connection is established.

  • Token permissions — The data available through the connector depends on the token permissions in Dynatrace.

  • Data availability — The connection can succeed when OneAgent is not deployed or service discovery is not enabled, but entity and business data will be empty.

Environment ID

An environment ID uniquely identifies a Dynatrace environment. Find the environment ID in the browser address bar of the Dynatrace console: the first segment of the domain is the environment ID. For example: https://<YOUR-ENVIRONMENT-ID>.live.dynatrace.com. For more information, see Monitoring environments.

Procedure

Complete the following steps to add a Dynatrace connector:

1. Open the Observable page

Choose Settings > Connectors > Observable.

2. Select Dynatrace

  1. Click Add observable.

  2. Select Dynatrace.

  3. Click Next.

3. Enter connector information

  1. Enter a Connector ID to uniquely identify the connector. You cannot modify the Connector ID after creation.

    The Connector ID must be 1 to 64 characters long and must contain only lowercase letters, numbers, and hyphens. It must start with a letter and end with a letter or number.

  2. Enter a Name to distinguish the connection in the list.

4. Configure the environment and credentials

  1. Enter the environment ID. Enter only the environment ID, not the complete domain.

    The environment ID must be 1 to 63 characters long and must start and end with a lowercase letter or number. Hyphens are allowed between the first and last character. Uppercase characters are saved as lowercase characters.

  2. Enter the Dynatrace token.

  3. Click Verify token. After verification succeeds, the number of available tools for the environment is displayed.

    The page does not proceed to the next step if the environment ID does not meet the format requirements or if the token cannot access the environment. If Dynatrace rejects the token, see Why does Dynatrace reject the token?.

Important

A saved token is not displayed again. Enter the token again before you verify it again.

5. Review and save

  1. In Check and add, review the Connector ID, environment ID, and modeling configuration.

  2. Click Save.

    After you save the connector, the system checks the connection status. The connector appears in the Observable list.

Verification

Use the following checks to confirm that the Dynatrace connector was added successfully:

  1. In the Observable list, verify that the connector status is Succeeded and that the connector type is Dynatrace. Verify that the Name and the environment ID match the values that you entered at creation.

  2. Click View details and verify the environment ID. After the check is complete, UModel overview and Entity overview display the numbers of collections and entities.

  3. In a session, query data that you know exists. A response related to the query conditions indicates that the connection and credentials work. An unauthorized or access-denied response indicates that the token has expired or lacks permissions. For help, see Why does Dynatrace reject the token?.

Supported analysis capabilities

After the connection succeeds, sessions and long-running tasks can perform the following types of analysis. These capabilities are consistent with the use cases supported by the Dynatrace MCP server.

  • Queries and analysis — Convert analysis requests to DQL queries, run queries, and explain existing query statements.

  • Time series — Forecast and analyze trends in metric data.

  • Problems and vulnerabilities — Query problem and vulnerability information, and identify affected entities.

  • Kubernetes — Analyze events in a specified cluster within a time range.

  • Entities — Find entity IDs by name, or resolve entity IDs to readable names.

  • Documentation and troubleshooting — Search platform documentation and troubleshooting guidance, and answer questions about Dynatrace products.

FAQ

Why does Dynatrace reject the token?

Check whether the token has expired, whether it includes permission to call the MCP server, and whether it belongs to the environment specified by the environment ID.

Why does token verification succeed but no entities appear?

The connection check verifies only the credentials and the tool catalog. It does not verify whether the environment contains data. Confirm that OneAgent is deployed or service discovery is enabled in the target environment, and that data was written during the query time range.

How do I connect multiple environments?

One connector corresponds to one environment ID. For multiple environments, create a connector for each environment and use environment names in sessions to avoid querying an unintended environment.

Why does saving fail with a message that the Connector ID already exists?

Use a different Connector ID and try again.

What do I do if the connector status is Failed?

Click Refresh status to check again. If the status remains Failed, delete and recreate the connector. Because a saved token is not displayed again, you must enter the Dynatrace token for the new connector. For more information, see Troubleshoot connector issues.

References