How observe-resolve/openaiobservability works
Main Components
• Application Backend – Represented by the contents in the “src” directory (with app.py and Dockerfile). This is the containerized application.
• Static Content – Located in “src/public” (HTML, CSS, images) which is the frontend although simple in nature.
• Containerization – The Dockerfile in “src” and deployment manifests (in the “k8s” directory) highlight that container images are deployed to a Kubernetes cluster.
• Observability Instrumentation:
• OpenTelemetry – The “opentelemetry” folder holds manifests and configuration (stateful sets, daemon sets, RBAC, etc.) that deploy the OpenTelemetry collector for gathering traces, logs, and metrics.
• Dynatrace Integration – Files in the “dynatrace” directory (dynakube.yaml) and instructions in the README detail how the Dynatrace Operator is used to monitor the Kubernetes environment.
• Infrastructure & Deployment – The “k8s” folder contains YAML files (e.g., deployment and loadtest) that define the Kubernetes deployment details, and “deployment.sh” is used as a script to deploy all components, tying in GKE provisioning and configuration.
Relationships & Interactions
• The containerized application (built from the “src” folder) runs inside a GKE cluster.
• Instrumentation via OpenTelemetry is integrated directly with the application containers and transmits telemetry data (traces, metrics, logs) to configured collectors.
• The Dynatrace Operator (defined by manifests in “dynatrace” and “k8s”) processes and forwards observability data from the OpenTelemetry collector (whose deployment is configured in the “opentelemetry” directory) to the Dynatrace tenant.
• External integration exists with the Azure OpenAI service (as shown in the README) where the application or a service acts as a client to the Azure OpenAI endpoint, with tokens used for authentication.
• Deployment orchestration is handled via “deployment.sh”, which automates the configuration of not only the Kubernetes cluster but also the secrets for tokens (Dynatrace API tokens, Azure OpenAI keys), linking everything together.
Architectural Patterns and Technologies
• Containerization and Microservices – The usage of Docker and Kubernetes for application deployment.
• Infrastructure-as-Code – Kubernetes manifests and deployment scripts drive reproducible deployments.
• API-Driven External Service Integration – Communication with Azure OpenAI’s services using endpoint and API keys.
Final Recommendations
• Within the GKE cluster, separate the application pod(s) from the monitoring pods.
• Logical boundaries between the application’s layers (backend, static frontend assets) and the telemetry/observability layers.
• Component is clearly marked with its corresponding technology (e.g., Docker for containerization, Kubernetes manifests for deployment, OpenTelemetry for telemetry, and Dynatrace for monitoring).
• Use consistent visual notation to improve readability and allow stakeholders to quickly understand how data flows from the application to the external monitoring systems.