Cloud & KubernetesEN · English

OpenChoreo Leverages OpenTelemetry for Kubernetes Event Retention and Distributed Tracing

OpenChoreo integrates the OpenTelemetry Collector to handle distributed tracing and long-term Kubernetes event retention, overcoming the platform limitation where cluster events are purged after a short default TTL.

Curated by Vibe DevOps · approx. 537 words

Key Takeaways

  • OpenChoreo is a CNCF Sandbox project developing a modular Internal Developer Platform (IDP) on Kubernetes.
  • The platform decouples its architecture into control, data, workflow, observability, and experience planes.
  • The tracing pipeline ingests spans via OTLP, enriches them using the k8sattributes processor, and supports tail sampling.
  • A custom Collector distribution uses the k8s events receiver and k8seventenrich processor to persist Kubernetes events long-term, bypassing the default ~1-hour retention window.

From Original Source

Observability Architecture and Distributed Tracing in OpenChoreo

OpenChoreo builds its observability layer from the ground up around a hexagonal-architecture 'Observer' component. The Observer exposes API ports for logs, metrics, and traces, integrating with storage infrastructure via adapters. For distributed tracing, workloads export spans over OTLP to an OpenTelemetry Collector deployed within each data plane. The pipeline uses the k8sattributes processor to attach pod and project metadata, paired with a tail-sampling processor before routing telemetry to a centralized backend or cloud provider.

Supports tracing backends such as OpenSearch and OpenObserve, alongside managed cloud integrations with AWS X-Ray, Azure Application Insights, and Google Cloud Trace.

  • Supports tracing backends such as OpenSearch or OpenObserve, as well as AWS X-Ray, Azure Application Insights, and Google Cloud Trace.
  • Provides an MCP server enabling AI agents to query trace data during incident triage and root cause analysis.

From Original Source

Overcoming Kubernetes Event Retention Limits

SREs and operators typically rely on 'kubectl get events' for troubleshooting, but the Kubernetes API server purges events after roughly one hour by default. To preserve critical context for post-incident reviews, OpenChoreo packages a dedicated OpenTelemetry Collector distribution to ingest and enrich cluster events.

This distribution pairs the k8s events receiver with the k8seventenrich processor to read labels, annotations, and owner references directly from an informer cache without placing load on the API server. Enriched events are then shipped to durable sinks such as OpenSearch or CloudWatch Logs.

Vibe DevOps Editorial Commentary

Practical Considerations for Operations Teams

DevOps Takeaway: When building an internal developer platform, injecting Kubernetes context into telemetry streams drastically reduces MTTR. Platform teams should standardize metadata enrichment at the edge Collector to avoid shipping raw, unindexed data downstream.

Additionally, establishing a persistent store for Kubernetes events is crucial for tracking intermittent failures, ensuring operational audit trails remain intact for post-mortems.

Commands & Configuration Snippets

Verbatim extract for quick lookup. Verify against your infrastructure before running.

kubectl get events

Check the list of events on the Kubernetes cluster

⚠️ Operational Caveats & Limitations

  • OpenChoreo is currently a CNCF Sandbox project; modules remain under active development.
  • The Kubernetes event collector distribution runs as a single replica to prevent event duplication.

Read original post at CNCF Blog ↗


Explore Next on Vibe DevOps

More Global DevOps News