Skip to main content

Monitoring with Dynatrace

The platform sends OTLP to the OpenTelemetry Gateway, which adds the credential and forwards everything to the Dynatrace OTLP API. Dynatrace accepts OTLP over HTTP only and metrics in delta temporality only, while the platform's metrics are cumulative: the gateway converts them (cumulative_to_delta). Without the conversion Dynatrace rejects those metrics. The Dynatrace Operator can add Kubernetes and node monitoring.

Before you start​

  • A Dynatrace environment and its environment URL: SaaS https://<environment-id>.live.dynatrace.com, Managed https://<host>/e/<environment-id>. For SaaS, choose a region that meets your data-residency requirements.

  • A token allowed to ingest traces, metrics and logs:

    Token typeWhereHeaderScopes
    Platform token (current SaaS)Account or environment settings, platform tokensAuthorization: Bearer <token>The OpenPipeline ingest scopes for traces, metrics and logs (openpipeline:traces:ingest, openpipeline:metrics:ingest, openpipeline:logs:ingest)
    Access token (Managed, and SaaS environments using classic tokens)Access tokens → Generate new tokenAuthorization: Api-Token <token>openTelemetryTrace.ingest, metrics.ingest, logs.ingest

    Grant no other scope.

  • The nodes reach the environment on port 443, or an ActiveGate inside your network.

Step 1. Install the gateway​

Follow OpenTelemetry Gateway: store the token as the gateway token, then install it with the common part plus:

replicaCount: 1 # cumulative_to_delta keeps state per series: one replica only
config:
processors:
cumulative_to_delta: {}
exporters:
otlp_http/dynatrace:
endpoint: <environment-url>/api/v2/otlp
headers:
Authorization: "Api-Token ${env:OTLP_TOKEN}" # platform token: "Bearer ${env:OTLP_TOKEN}"
service:
pipelines:
traces: {receivers: [otlp], processors: [memory_limiter, batch], exporters: [otlp_http/dynatrace]}
metrics: {receivers: [otlp], processors: [memory_limiter, cumulative_to_delta, batch], exporters: [otlp_http/dynatrace]}
logs: {receivers: [otlp], processors: [memory_limiter, batch], exporters: [otlp_http/dynatrace]}

The gateway runs with one replica (overriding the 2 of the common part) while cumulative_to_delta is in the pipeline: the conversion keeps state per series, and two replicas receiving the same series would compute wrong deltas.

kubectl -n idv-monitoring logs deploy/otel-gateway --tail=50 | grep -i -E 'error|401|403|400' || echo "no export errors"

Step 2. Send the platform's telemetry to the gateway​

In observability-values.yaml (Configure the platform's OTLP settings):

global:
observability:
otlpEndpoint: http://otel-gateway.idv-monitoring:4318
otlpGrpcEndpoint: http://otel-gateway.idv-monitoring:4317
collector:
logs:
enabled: false # true: pod logs to Dynatrace (read "The optional log collector" first)

Run the upgrade and the checks of Apply the change.

Step 3. Kubernetes and nodes: Dynatrace Operator (optional)​

In Dynatrace, Kubernetes → Add cluster generates the commands and the DynaKube resource for your environment (the Operator installs with Helm from oci://public.ecr.aws/dynatrace/dynatrace-operator).

  • Start with Kubernetes platform monitoring (ActiveGate only: cluster, nodes, workloads, events). It changes nothing in the platform's pods.
  • Full-stack or application monitoring injects OneAgent into the pods, which gives Dynatrace access to the processes and the data they handle. Exclude the platform namespace from injection unless your security team approves it; the OTLP data already provides the traces. If you inject anyway, test it in a development environment first: most platform pods run with read-only root filesystems and restricted security contexts.
  • Add tolerations for the taints you gave your nodes (for example the DIS node) where the generated resources run on every node.

Done when, in Dynatrace:

  • Distributed Traces shows the platform services.
  • Metrics (Data Explorer) finds dis_license_expiration_remaining_days.
  • Logs shows the pod logs of the platform namespace, when logs are on.
  • Kubernetes shows the cluster, when the Operator is installed.

Step 4. Alerts​

Create metric events (Anomaly detection → Metric events) on the metrics in Alert Rules. The counters arrive as deltas: alert on the sum over the window, not on an increase. Davis raises its own problems for services, pods and nodes.

Remove​

  1. Set the platform's endpoints to "" and upgrade (Stop exporting).
  2. Remove the gateway (Remove the gateway); remove the DynaKube and the Operator as Dynatrace describes.
  3. Revoke the token in Dynatrace and delete its secret-store entry.
  4. Data already sent stays in Dynatrace until its retention period ends.