How dynatrace-oss/dtwiz works
dtwiz is a Dynatrace ingestion CLI: it inspects a host or project, recommends an ingestion approach, deploys or configures that approach, and can watch for arriving telemetry. The README documents distinct installation paths for host agents, OpenTelemetry, Kubernetes, Docker, and cloud integrations; the graph preserves these major branches. Source excerpts are partial, so links between unsampled implementation details are omitted where their callers are not established.
Main entry points: installer.go Install dispatcher · root.go Command entry · setup.go Guided setup · otel.go OpenTelemetry setup
Components 19
CLI workflow
- Command entry
cmd/root.go - Guided setup
cmd/setup.go
Discovery and advice
- Environment analysis
pkg/analyzer/analyzer.go - Ranked recommendations
pkg/recommender/recommender.go
Ingestion deployment
- Install dispatcher
pkg/installer/installer.go - OneAgent install
pkg/installer/oneagent/oneagent.go - OpenTelemetry setup
pkg/installer/otel/otel.go - Collector deployment
pkg/installer/otel/collector.go - Kubernetes install
pkg/installer/kubernetes/install.go - Docker install
pkg/installer/docker.go - AWS integration
pkg/installer/aws/install.go - Lambda layer
pkg/installer/aws_lambda.go - Azure integration
pkg/installer/azure/install.go - GCP integration
pkg/installer/gcp/install.go
Dynatrace integration
- Extension and routes
pkg/installer/extension_client.go - Dynatrace API client
pkg/client/client.go
Ingest feedback
- Ingest watcher
pkg/installer/ingest_watch.go
Other components
- CLI operator
- Dynatrace environment
Connections 22
- CLI operator → Command entry: runs commands
- Command entry → Guided setup: dispatches setup
- Guided setup → Environment analysis: analyzes system
- Guided setup → Ranked recommendations: requests ranking
- Guided setup → Install dispatcher: starts installation
- Command entry → Environment analysis: runs analyze
- Command entry → Ranked recommendations: runs recommend
- Command entry → Install dispatcher: runs install
- Install dispatcher → OneAgent install: dispatches
- Install dispatcher → OpenTelemetry setup: dispatches
- Install dispatcher → Collector deployment: dispatches
- Install dispatcher → Kubernetes install: dispatches
- Install dispatcher → Docker install: dispatches
- Install dispatcher → AWS integration: dispatches
- Install dispatcher → Lambda layer: dispatches
- Install dispatcher → Azure integration: dispatches
- Install dispatcher → GCP integration: dispatches
- OpenTelemetry setup → Extension and routes: configures routes
- Extension and routes → Dynatrace environment: reads and writes settings
- Dynatrace API client → Dynatrace environment: sends API requests
- Ingest watcher → Dynatrace environment: queries telemetry
- Command entry → Ingest watcher: runs watch