Closed samuelbernardy closed 1 year ago
Agent State 3 means the OneAgent SDK module was not even found/loaded. This is not an issue with this library, please open a support ticket with Dynatrace, after doing the troubleshooting documented here: https://github.com/Dynatrace/OneAgent-SDK-for-Python#troubleshooting
(will provide code from instrumented app shortly in comments)
Dynatrace image Dockerfile:
Here is the entrypoint.ps1 script as well:
The Invoke-WebRequest PowerShell cmdlet was used to obtain the SDK binaries, which are being built directly into the image:
Invoke-WebRequest -Uri {Dynatrace Pre-Prod API URL}/api/v1/deployment/installer/agent/windows/paas/latest?Api-Token=xxxxxxxxxxxxxxx&flavor=default&arch=x86&include=sdk -OutFile "sdkInstaller.zip"
Add initContainer details in deployment YAML containing Dynatrace image:
Deploy YAML to OpenShift/Kubernetes using kubectl: kubectl apply -f deploy.yaml
OpenShift 4.11 (running in GCP), Kubernetes version v1.24.6+263df15, Windows container info: Windows Server 2022 [Version 10.0.20348.1668] Python version 3.7.0