Dynatrace
- Metrics - Performance metrics from applications and infrastructure
- Signals - Automatic Signal detection from metrics, traces, and external monitoring systems
- Traces - Distributed traces for service dependency discovery and communication monitoring
Causely integrates with Dynatrace to ingest service dependencies and trace-based metrics from Kubernetes and ECS environments, and infrastructure and dataflow data from public cloud and on-prem environments such as VMware. This enables Causely to build a unified causality graph across mixed container platforms and underlying infrastructure, and generate a dependency and service map that accurately reflects how your system behaves under change. Causely also maps your existing Dynatrace infrastructure alerts to infrastructure Signals, alongside the application-layer alerts it already maps. By incorporating Dynatrace traces, service-level metrics, and infrastructure data, Causely strengthens reliability assurance across hybrid environments. The setup process below applies to all supported environments.
Supported environments
- Kubernetes
- ECS (via Dynatrace OneAgent / Dynatrace APM instrumentation)
- VMware and other on-prem or host-based environments (via Dynatrace OneAgent / Dynatrace APM instrumentation)
Step 1: Create an API token
Causely uses a read-only Dynatrace API token. The token needs the following scopes:
| Scope | UI name | Used for |
|---|---|---|
entities.read | Read entities | Services, processes, hosts, and dependencies |
metrics.read | Read metrics | Request rate, error rate, and duration |
problems.read | Read problems | Dynatrace problems used as Signals |
syntheticExecutions.read | Read synthetic monitor execution results | Synthetic monitors and their results |
syntheticLocations.read | Read synthetic locations | Synthetic monitor locations |
You can create the token in the Dynatrace UI or with the Dynatrace API.
- Dynatrace UI
- Dynatrace API (curl)
- In Dynatrace, go to Manage > Access Tokens.
- Select Generate new token.
- In Token name, enter a name such as
causely. Optionally, set an Expiration date. - Leave Template set to None.
- In Search scopes..., search for each scope in the table above and select its checkbox. Check that all five scopes appear under Selected scopes.
- Select Generate token.
- Copy the token and store it securely. Dynatrace shows the token only once.
The Generate access token page also shows the matching cURL command for the selected scopes. Use Copy cURL to automate token creation, as shown in the Dynatrace API (curl) tab.
To create the token with the Dynatrace API tokens API, you need an existing token with the apiTokens.write scope.
export DT_URL="https://<your-environment-id>.live.dynatrace.com"
export DT_ADMIN_TOKEN="<token with apiTokens.write scope>"
curl -X POST "${DT_URL}/api/v2/apiTokens" \
-H "accept: application/json; charset=utf-8" \
-H "Content-Type: application/json; charset=utf-8" \
-H "Authorization: Api-Token ${DT_ADMIN_TOKEN}" \
-d '{
"name": "causely",
"scopes": [
"entities.read",
"metrics.read",
"problems.read",
"syntheticExecutions.read",
"syntheticLocations.read"
]
}'
The new token is in the token field of the response. Dynatrace returns it only once, so store it securely.
Step 2: Create a Kubernetes Secret with the Dynatrace URL and API token
After you create the API token, create a Kubernetes Secret. Set url to your Dynatrace environment URL, such as https://<your-environment-id>.live.dynatrace.com, and set api-token to the token from Step 1:
kubectl create secret generic \
--namespace causely dynatrace-credentials \
--from-literal=url="..." \
--from-literal=api-token="..."
Step 3: Update Causely configuration
Once the secret is created, update the Causely configuration to enable scraping for the dynatrace account. Enabling scraping allows Causely to ingest Dynatrace topology, telemetry, and infrastructure data for all supported environments.
Below is an example configuration:
scrapers:
dynatrace:
enabled: true
accounts:
- secretName: dynatrace-credentials
Alternative: Enable Credentials Autodiscovery
Causely supports credentials autodiscovery so you can add new accounts without editing config. Label the Kubernetes secret to enable autodiscovery for the Dynatrace scraper:
kubectl --namespace causely label secret dynatrace-credentials "causely.ai/scraper=Dynatrace"
Unified Stitching Across Kubernetes and ECS
When Dynatrace is enabled, Causely automatically discovers and models dependencies between ECS and Kubernetes services, creating a unified causal view of your environment.
Causely will:
- Discover and stitch dependencies across Kubernetes and ECS services, even when they span clusters or runtimes
- Include service-level metrics (request rate, error rate, duration) and corresponding Signals from ECS as inputs to Causely's causal reasoning
- Display ECS services alongside Kubernetes services in Causely’s environment graph, dependency views, and reliability analysis
Infrastructure Coverage
When Dynatrace is enabled, Causely ingests how data flows between your application components and the infrastructure they run on, directly from Dynatrace instrumentation. This covers public cloud and on-prem environments, such as VMware.
Causely will:
- Map application components to their underlying infrastructure, including VMware hosts
- Map your existing Dynatrace infrastructure alerts to the infrastructure Signals Causely already tracks, alongside the application-layer alerts it already maps
- Use these infrastructure Signals as inputs to Causely's causal reasoning, alongside application-layer Signals