Skip to main content

Dynatrace

Telemetry Provided
  • 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:

ScopeUI nameUsed for
entities.readRead entitiesServices, processes, hosts, and dependencies
metrics.readRead metricsRequest rate, error rate, and duration
problems.readRead problemsDynatrace problems used as Signals
syntheticExecutions.readRead synthetic monitor execution resultsSynthetic monitors and their results
syntheticLocations.readRead synthetic locationsSynthetic monitor locations

You can create the token in the Dynatrace UI or with the Dynatrace API.

  1. In Dynatrace, go to Manage > Access Tokens.
  2. Select Generate new token.
  3. In Token name, enter a name such as causely. Optionally, set an Expiration date.
  4. Leave Template set to None.
  5. In Search scopes..., search for each scope in the table above and select its checkbox. Check that all five scopes appear under Selected scopes.
  6. Select Generate token.
  7. Copy the token and store it securely. Dynatrace shows the token only once.
tip

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.

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