Kubernetes OpenTelemetry#
Support Policy
This is an enablement project created by the Center of Excellence - Enablement Team at Dynatrace.
Support is provided via GitHub issues only. The materials provided in this repository are offered "as-is" without any warranties, express or implied. Use them at your own risk.
Lab Overview#
During this hands-on training, we’ll learn how to capture logs, traces, and metrics from Kubernetes using OpenTelemetry and ship them to Dynatrace for analysis. This will demonstrate how to use Dynatrace with OpenTelemetry; without any Dynatrace native components installed on the Kubernetes cluster (Operator, OneAgent, ActiveGate, etc.).
Lab tasks:
-
OpenTelemetry Logs
- Deploy OpenTelemetry Collector as a DaemonSet
- Deploy OpenTelemetry Collector as a Deployment
- Configure OpenTelemetry Collector service pipeline for log enrichment
- Query and visualize logs in Dynatrace using DQL
-
OpenTelemetry Traces
- Deploy OpenTelemetry Collector as a Deployment
- Configure OpenTelemetry Collector service pipeline for span enrichment
- Analyze application reliability via traces in Dynatrace
-
OpenTelemetry Metrics
- Deploy OpenTelemetry Collector as a DaemonSet
- Configure OpenTelemetry Collector service pipeline for metric enrichment
- Deploy OpenTelemetry Collector as a Deployment
- Configure OpenTelemetry Collector service pipeline for metric enrichment
- Query and visualize metrics in Dynatrace using DQL
-
OpenTelemetry Capstone
- Deploy 4 OpenTelemetry Collectors
- Configure OpenTelemetry Collector service pipeline for data enrichment
- Analyze metrics, traces, and logs in Dynatrace
- Observe OpenTelemetry Collector health in Dynatrace
Technical Specification#
Technologies Used#
- Dynatrace
- Kubernetes Kind
- tested on Kind tag 0.27.0
- Cert Manager - *prerequisite for OpenTelemetry Operator
- tested on cert-manager v1.15.3
- Dynatrace Operator
- tested on v1.4.2 (April 2025)
- Dynatrace OneAgent
- tested on v1.309 (April 2025)
Reference Architecture#
Continue#
In the next section, we'll review the prerequisites for this lab needed before launching our Codespaces instance.