Applications & Kubernetes ยท Standard

Kubernetes Observability and OpenTelemetry Standards

Defines portable metrics, logs, traces, events, SLO, telemetry pipeline, cardinality, retention, and incident-correlation standards for Kubernetes.

Document class: Applications & Kubernetes mandatory engineering standard Normative terms: MUST, MUST NOT, SHOULD, SHOULD NOT, and MAY are requirements levels. Applicability: Kubernetes metrics, logs, traces, OpenTelemetry collectors, resource attributes, SLOs, correlation, governance, and cost controls. Exception process: Deviations require a documented risk assessment, compensating controls, named risk owner, and expiry date.

Control fieldValue
Document IDAPP-13
OwnerCloud Center of Excellence
Review cycleAt least annually and after material cloud-service, Kubernetes, observability, security, or operating-model changes
EvidenceTelemetry contract, collector configuration, resource-attribute checks, SLO evidence, correlation tests, and data-governance review

Decision in brief: Make every workload observable through consistent identity, resource attributes, metrics, logs, traces, SLOs, and cost-aware collection with clear ownership.

Purpose

Observability must allow teams to determine what changed, which version is running, where a request failed, whether users are affected, and which component owns the response. This standard defines a vendor-neutral telemetry contract using OpenTelemetry where practical.

Reference architecture

flowchart LR A[Applications and SDKs] --> B[OpenTelemetry agents or collectors] C[Kubernetes events and platform metrics] --> B D[Container and audit logs] --> B B --> E[Gateway collectors] E --> F[Metrics backend] E --> G[Log backend] E --> H[Trace backend] F --> I[Dashboards alerts and SLOs] G --> I H --> I

Telemetry contract

Every production service must provide:

  • Request or transaction rate, errors, duration, and saturation.
  • Structured logs with timestamp, severity, service, environment, version, and correlation identifiers.
  • Distributed traces for critical cross-service paths.
  • Health, dependency, queue, and background-worker signals.
  • Deployment and configuration-change markers.
  • SLOs and alerting tied to user impact.

Do not place passwords, tokens, personal data, or unbounded payloads in telemetry.

Resource attributes

Standardize service name, namespace, version, deployment environment, cluster, cloud provider, region, and accountable team. Where an OpenTelemetry semantic convention exists, use its key, for example service.name, service.version, deployment.environment.name, k8s.namespace.name, k8s.cluster.name, cloud.provider, and cloud.region; record accountable team as an organization-defined attribute. Keep attribute names stable across Azure, AWS, GCP, and OCI so dashboards and alerts remain portable.

Avoid high-cardinality dimensions such as user ID, request ID, full URL, pod UID, or exception message in metrics. These values may belong in logs or traces with controlled retention.

Collector deployment models

Node agent

A DaemonSet collects container logs and node-local telemetry. It minimizes application configuration but requires resource and security controls on every node.

Gateway collector

A centralized or regional Deployment performs sampling, filtering, enrichment, and export. Make it zone-resilient, autoscaled, queued, and protected from noisy tenants.

Sidecar

Use only when a workload needs strong local isolation or protocol handling. Sidecars increase pod resources and lifecycle complexity.

Most platforms use node agents plus gateway collectors.

Metrics and SLOs

Define service-level indicators from the user journey, not only pod health. Use burn-rate alerts for error budgets and separate urgent symptoms from diagnostic signals. A restarted pod is context; failed customer transactions are impact.

Control scrape intervals, histogram buckets, labels, and retention. Record missing-data behavior so telemetry outages do not appear as healthy zero values.

Logging standards

  • Write structured events to standard output and error unless a platform exception exists.
  • Use consistent severity and event names.
  • Include correlation and trace identifiers.
  • Redact secrets and regulated data before export.
  • Bound message size and rate.
  • Preserve audit logs separately with stricter access and retention.
  • Avoid multiline, free-form logs for machine processing when structured fields are available.

Tracing and sampling

Propagate W3C Trace Context across synchronous calls and messaging. Use head sampling for predictable cost and tail sampling for important errors or high-latency traces when the collector can support it. Tail sampling requires all spans of a trace to reach the same collector instance, so pair it with trace-ID-aware load balancing at the gateway tier. Document which services break propagation.

Sampling must not remove mandatory audit evidence. Control attribute capture and baggage to prevent sensitive-data propagation.

Kubernetes signals

Collect workload status, restarts, scheduling latency, pending pods, evictions, resource throttling, OOM events, autoscaler decisions, volume errors, gateway health, certificate expiry, GitOps reconciliation, and admission denials. Kubernetes Events are short-lived operational signals (the API server's default event TTL is one hour) and should be exported if needed for investigation.

Multi-cloud integration

CloudNative destination examplesPortable integration
AzureAzure Monitor, Application Insights, Azure Monitor managed service for PrometheusOTLP and OpenTelemetry Collector
AWSCloudWatch, Amazon Managed Service for Prometheus, X-RayOTLP and OpenTelemetry Collector
GCPCloud Monitoring, Cloud Logging, Cloud TraceOTLP and OpenTelemetry Collector
OCIMonitoring, Logging, Application Performance MonitoringOTLP and OpenTelemetry Collector

Use open protocols at the application boundary and provider exporters at controlled collection layers.

Reliability and cost controls

Telemetry pipelines need queues, memory limits, backpressure, retry bounds, drop metrics, and capacity alerts. Define priority so critical audit and SLO signals survive overload. Apply retention and sampling by data value, compliance need, and investigation window.

Telemetry data governance

Telemetry must be classified and governed like other data. The design should define permitted attributes, prohibited data, retention, residency, encryption, access roles, legal hold, and deletion. Logs and traces frequently contain identifiers and payload fragments that were never intended for a central analytics platform.

Apply filtering as close to the source as practical, but retain enough metadata to investigate failures. Redaction rules require tests because field names, exception formats, and third-party libraries change over time.

Collector pipeline design

Collector configurations should separate receivers, processors, exporters, and routing by telemetry class and criticality. A production design should include:

  • Memory limits and queue sizing.
  • Batch behavior and maximum payload size.
  • Retry bounds and exporter timeout.
  • Load balancing or sharding for gateway collectors.
  • Persistent queueing where loss tolerance requires it.
  • Drop and refusal metrics.
  • Tenant or namespace isolation where one source could create excessive volume.
  • A controlled configuration rollout and rollback process.

Critical audit data should not share an unbounded failure path with high-volume debug telemetry. During backend outage, collectors must protect node and application availability even if that requires dropping lower-value data.

SLO implementation standard

Each SLO should identify the service boundary, user journey, SLI query, target, measurement window, excluded events, data source, owner, and alert policy. Validate the query against known good and known bad transactions. Missing telemetry must not be interpreted automatically as success.

Use multi-window burn-rate alerts or an equivalent method to identify both rapid and sustained error-budget consumption. Diagnostic alerts such as pod restart or high CPU may support investigation but should not page independently unless they predict imminent user impact.

Trace and log correlation for asynchronous work

Messaging breaks the simple request-response trace model. Producers should propagate trace context in supported message attributes and create a new consumer span linked to the producer context. Record message identifier, destination, attempt, processing outcome, and dead-letter transition without placing sensitive payloads in telemetry.

Long-running jobs should emit execution identity, partition or shard, checkpoint progress, retry count, and final completion status. Correlation must survive pod restart and rescheduling.

Diagnostic minimum for platform incidents

The platform should allow responders to determine:

  • Which cluster, namespace, workload, version, image digest, and node are affected.
  • Whether admission, scheduling, image pull, secret mount, DNS, network, storage, or identity failed.
  • Whether the issue began after a deployment, policy, configuration, certificate, or platform change.
  • Whether impact is isolated to a tenant, zone, node pool, region, or dependency.
  • Whether telemetry itself is incomplete or delayed.

Dashboards should link from user-impact views to workload, Kubernetes, cloud, and change evidence without requiring manual identifier translation.

Validation

  • Services emit standardized resource and correlation attributes.
  • Metrics, logs, traces, events, and deployment markers correlate.
  • SLOs measure user outcomes and have tested alerts.
  • Secrets and sensitive payloads are filtered before export.
  • Cardinality, volume, retention, and sampling have limits.
  • Collectors are isolated, resilient, monitored, and capacity-tested.
  • Telemetry loss and exporter failure are visible.
  • Multi-cloud dashboards use normalized attributes.
  • Runbooks link alerts to owners and diagnostic views.

Operational considerations

Review unused telemetry, alert quality, storage growth, top cardinality sources, sampling effectiveness, and collector version skew. Test an observability-backend outage and confirm that applications remain available while collectors bound resource use.

Operational boundaries and acceptance criteria

Before adopting this guidance, record the accountable service owner, supported environments, critical dependencies, data classification, and the operational tier. State which decisions belong to the platform team and which remain with the workload team; document any exception with a risk owner and expiry date. This prevents a reference pattern from being treated as a universal fit.

Define observable acceptance checks before rollout. Include a positive path, a denied or invalid request, a dependency failure, and recovery after the failure clears. Capture the configuration or command output that proves each check, along with the software and policy versions used. Make checks repeatable in a representative non-production environment, and ensure they fail closed when required evidence is missing.

For production changes, identify the safe rollback or forward-recovery action, the person authorized to invoke it, and the condition that triggers it. Confirm that monitoring, support ownership, capacity limits, and escalation contacts are in place before declaring the change complete. Review these assumptions after a material platform, provider, or regulatory change.

Workload failure domains and upgrade safety

Treat a cluster as a shared failure domain only when its identity, network, storage, and administrative boundaries match the workload's risk. Spread replicas across independent zones where available, use disruption budgets for voluntary maintenance, and keep readiness separate from liveness so a dependency outage does not trigger restart storms. Set CPU and memory requests from measured demand, then test limits under realistic load; throttling and memory pressure can make a nominally healthy pod unavailable.

Before changing Kubernetes or an add-on, compare deprecated API usage, admission policies, CSI and CNI compatibility, node-image support, and workload disruption. Upgrade a representative canary first, observe scheduling and error rates, and retain a tested rollback or node-pool replacement path.

References