Kubernetes Observability

What Is Cloud-Native Monitoring? How It Works and Best Practices

November 21, 2026
7
min read
Kubernetes Observability

When a container in your Kubernetes cluster exceeds its memory limit, Kubernetes may kill and restart it. By the time you investigate, the container may have restarted or the pod may have been replaced, leaving the logs needed to explain the failure unavailable. A monitoring setup that tracks fixed hosts and IP addresses may miss the replacement workload altogether.

Cloud-native monitoring addresses these problems by discovering workloads as they appear, collecting metrics, logs, traces, and events, and retaining that telemetry after the workloads disappear. This guide explains how the architecture works, which signals matter, and how to use them to investigate failures, alert on service reliability, and manage monitoring costs.

What Is Cloud-Native Monitoring?

Cloud-native monitoring is the continuous collection, correlation, and analysis of metrics, logs, traces, and events from distributed applications and changing infrastructure. Unlike monitoring configured around fixed servers and IP addresses, it automatically discovers workloads and tracks service health as containers and services start, scale, move, or terminate.

Cloud-native monitoring covers microservices, containers, and serverless functions, whether they run on Kubernetes or elsewhere. Label-based metrics and resource attributes connect telemetry to services, namespaces, deployments, and pods, while open formats and standards such as OpenTelemetry’s OTLP and Prometheus metrics support interoperability between monitoring tools. Kubernetes is a common deployment environment, with 82% of container users reporting that they ran it in production in the 2025 CNCF Annual Cloud Native Survey, up from 66% in 2023.

There are four key capabilities that make cloud-native monitoring effective in environments where workloads change frequently:

  • Dynamic discovery: The monitoring system finds new pods, services, and nodes through an API instead of relying on a manually maintained target list.
  • Automated collection: Node-level agents, SDKs, or kernel-level sensors collect telemetry as workloads start and scale, without requiring manual configuration for every instance.
  • Contextual correlation: Kubernetes metadata, such as namespace, workload, pod, and node identifiers, connects related metrics, logs, and traces so you can investigate the same issue across services.
  • Persistence beyond workload lifetimes: Telemetry is exported to persistent storage before the workload’s data is lost, allowing you to investigate failures after the original pod or container disappears.

How Does Cloud-Native Monitoring Work?

Cloud-native monitoring continuously discovers workloads, collects their telemetry, adds resource metadata, and stores the data in a backend that outlives the workloads. In Kubernetes, this process adapts as pods scale, restart, or are replaced, allowing you to monitor services without manually updating targets whenever the cluster changes.

Dynamic Service Discovery and Kubernetes Metadata

Dynamic discovery replaces fixed monitoring targets with information from the Kubernetes API. Prometheus uses kubernetes_sd_configs to discover pods, services, nodes, and EndpointSlices. Each target includes metadata that Prometheus can use to select scrape endpoints and identify the workload.

For pod-level metrics, configure your application to expose /metrics on a container port named metrics, such as port 9090. Add the annotation prometheus.io/scrape: "true" under spec.template.metadata.annotations in the Kubernetes Deployment. Prometheus must also have permission to list and watch pods, and network access to the metrics endpoint.

Add the following job to your Prometheus scrape_configs:

scrape_configs:
  - job_name: kubernetes-pods
    scrape_interval: 30s
    metrics_path: /metrics
    kubernetes_sd_configs:
      - role: pod
    relabel_configs:
      - source_labels: [__meta_kubernetes_pod_annotation_prometheus_io_scrape]
        action: keep
        regex: "true"
      - source_labels: [__meta_kubernetes_pod_container_port_name]
        action: keep
        regex: metrics
      - source_labels: [__meta_kubernetes_pod_phase]
        action: keep
        regex: Running
      - source_labels: [__meta_kubernetes_namespace]
        target_label: namespace
      - source_labels: [__meta_kubernetes_pod_name]
        target_label: pod
      - source_labels: [__meta_kubernetes_pod_container_name]
        target_label: container

Prometheus now scrapes only running pods with the annotation enabled, targeting their declared metrics ports. It also attaches namespace, pod, and container labels to the collected metrics. If your application exposes metrics at a different path, configure metrics_path accordingly or use a separate scrape job for workloads with different endpoints.

When a Deployment scales from 3 to 20 replicas, Prometheus discovers the 17 additional pods automatically. When a pod is replaced, its old target disappears and the new one is discovered through Kubernetes API updates. The same workload context helps correlate logs and traces: the OpenTelemetry Collector uses its k8sattributes processor to attach attributes such as k8s.namespace.name, k8s.pod.name, and k8s.deployment.name to telemetry. The processor needs access to the relevant Kubernetes metadata, with additional permissions for certain extraction settings.

Collecting Metrics, Logs, Traces, and Events

Cloud-native monitoring combines four telemetry signals:

  • Metrics: Numerical measurements over time, such as error rates, CPU usage, and memory consumption.
  • Logs: Records of application and system events, including errors and stack traces.
  • Traces: Individual requests as they travel across services, showing operations and their durations.
  • Kubernetes events: Cluster activity such as scheduling failures, image pull errors, BackOff warnings, and evictions.

Prometheus collects metrics by periodically scraping discovered endpoints. OpenTelemetry SDKs capture application telemetry and send it to the Collector over OTLP. The Collector can also collect container logs using its filelog receiver and Kubernetes events using receivers such as k8s_events or k8sobjects. Fluent Bit provides another option for log collection, running as a DaemonSet with one agent per node to read container logs and forward them with Kubernetes metadata.

eBPF-based monitoring captures runtime activity without requiring application code changes. Cilium’s Hubble uses eBPF to observe network flows, while groundcover’s sensor captures application traffic for supported protocols. These sensors still consume CPU and memory on the nodes where they run.

Monitoring systems can collect data through either pull or push methods. Prometheus normally pulls metrics and generates an up metric to indicate whether each configured target was scraped successfully. OpenTelemetry SDKs typically push telemetry to a Collector or backend. Prometheus can also receive OTLP and remote-write metrics, but these inputs do not provide the same per-target scrape-health information.

Correlating Telemetry Across Services

Metrics can show that a service is failing, but identifying the underlying problem often requires combining multiple signals. Correlation connects telemetry through three types of information:

  • Resource attributes: Service names, namespaces, deployments, pods, and node identifiers associate telemetry with workloads.
  • Timestamps: Consistent timestamps help connect latency spikes, application errors, container restarts, and deployment events.
  • Trace context: Shared trace identifiers connect operations across services and can link traces to related logs and metric exemplars.

Distributed tracing uses the W3C traceparent HTTP header to propagate context between services. The header carries a trace ID, parent span ID, and sampling flags. OpenTelemetry instrumentation can inject this context into outgoing requests and extract it when another service receives them.

Logs can include the TraceId and SpanId of the active request, allowing you to retrieve log entries associated with a particular trace. Metrics can provide a similar connection through exemplars, which associate individual measurements with trace context. These connections require compatible instrumentation and metadata because logs do not automatically contain trace IDs, and ordinary Prometheus metrics need exemplar support to link individual measurements to traces. With those connections in place, you can follow a failed request across services and inspect related application and infrastructure activity.

Preserving Telemetry From Short-Lived Workloads

Telemetry must reach persistent storage before the workload that produced it disappears. Kubernetes does not provide native cluster-level log storage, so you can run a node-level logging agent as a DaemonSet to forward container logs to a backend. This allows you to investigate failures after the original pods have been removed. Kubernetes events also have a limited lifetime, with the API server retaining them for one hour by default, so event collectors need to export them before they expire.

Short-lived jobs create another problem: a batch pod that starts and finishes between two Prometheus scrapes may never have its metrics collected. For service-level batch jobs, the Prometheus Pushgateway can retain pushed metrics until Prometheus scrapes them. However, it is not a replacement for general-purpose scraping because it retains pushed series until they are explicitly deleted and does not track the original job’s health through up. It can also become a bottleneck when shared across many workloads.

Retention determines how far back you can investigate. Prometheus stores metrics locally for 15 days by default, although you can configure longer retention when sufficient disk space is available. Larger deployments commonly use external backends such as Thanos or Mimir for scalable historical storage. For longer-term analysis, retain detailed pod-level metrics for recent investigations and aggregate older metrics by service or namespace to preserve useful trends without storing every short-lived pod’s individual time series indefinitely.

What Should You Monitor in a Cloud-Native Environment?

Start by monitoring the metrics that show whether users can access your services and how well those services respond. Then use infrastructure metrics to investigate problems such as resource exhaustion, failed deployments, and container restarts.

The Four Golden Signals

The four golden signals are latency, traffic, errors, and saturation. Together, they help you assess service reliability and identify problems that need investigation. For a Kubernetes checkout service, you can monitor:

  • Latency: P95 request duration for /checkout, measured separately for successful and failed requests. A fast HTTP 500 response can lower the overall latency measurement even though the request failed.
  • Traffic: The number of checkout requests per second, broken down by endpoint to identify changes in demand.
  • Errors: The percentage of failed checkout requests, including HTTP 5xx responses, incorrect responses that return HTTP 200, and requests exceeding an agreed latency threshold.
  • Saturation: How close critical resources are to their capacity, such as CPU throttling, database connection pool utilization, or the number of concurrent requests.

You can use these measurements to define service-level indicators (SLIs) for reliability objectives. For example, a checkout latency-and-success SLI could measure the percentage of requests completed successfully within 500 milliseconds.

Monitoring Across Kubernetes Layers

The golden signals show how a service is performing, while infrastructure metrics help explain why its performance changes. Monitor the following Kubernetes layers to connect application problems with resource usage, workload health, and cluster activity.

LayerKey Metrics or EventsData Source
Cluster and control planeAPI server request latency using apiserver_request_duration_secondskube-apiserver /metrics
Nodeskube_node_status_condition for MemoryPressure, DiskPressure, and PIDPressure; available disk space using node_filesystem_avail_byteskube-state-metrics, Node Exporter
Podskube_pod_container_status_restarts_total, kube_pod_container_status_last_terminated_reason{reason="OOMKilled"}, scheduling failures, and evictionskube-state-metrics, Kubernetes events
ContainersCPU throttling using container_cpu_cfs_throttled_periods_total and container_cpu_cfs_periods_total; memory usage using container_memory_working_set_bytescAdvisor through kubelet /metrics/cadvisor
Service meshHTTP request count and response codes using istio_requests_total; request latency using istio_request_duration_millisecondsIstio proxies
ApplicationsRequest latency, throughput, error rates, and distributed tracesOpenTelemetry SDKs, Prometheus client libraries

Some metrics require additional context to interpret correctly. For example, kube_pod_container_status_last_terminated_reason is a 0/1 gauge indicating the last container termination reason, not a counter of how many times a container was OOM-killed. Combine it with increases in the container restart counter and Kubernetes events to identify new failures.

Service mesh metrics also depend on how Istio is deployed. In ambient mode, ztunnel provides Layer 4 telemetry, while waypoint proxies provide the Layer 7 visibility needed for HTTP request counts and latency metrics. These metrics are also available through appropriately configured Istio sidecar proxies.

Cloud-Native Monitoring Best Practices

Use cloud-native telemetry to investigate failures, alert on service reliability, and control monitoring costs as workloads scale.

Correlate Telemetry to Investigate Production Incidents

A checkout service starts returning errors after a deployment. This four-step root cause analysis example shows how to connect metrics, traces, logs, and Kubernetes events before confirming a suspected cause.

Step 1: Confirm the problem with an error-rate metric. If Istio HTTP metrics are available through sidecars or ambient waypoint proxies, calculate the checkout service’s 5xx error ratio:

sum(rate(istio_requests_total{reporter="destination", destination_service_name="checkout", destination_service_namespace="shop", response_code=~"5.."}[5m]))
/
sum(rate(istio_requests_total{reporter="destination", destination_service_name="checkout", destination_service_namespace="shop"}[5m]))

The query returns the proportion of checkout requests receiving HTTP 5xx responses over the last five minutes. If the error rate rises from 0.2% to 8% after deployment, you have confirmed the service is experiencing more failures, but not what caused them.

Step 2: Identify the affected workload. Group both sides of the error-rate query by destination_workload and destination_workload_namespace to see which workloads are affected. Standard Istio metrics do not identify individual pods or ReplicaSets, so compare the results with Kubernetes deployment history and pod-attributed logs or traces. Check whether failures coincide with the new checkout ReplicaSet or affect both old and new pods, which could indicate a shared dependency problem.

Step 3: Follow a failed request across services. Open a failed checkout trace from the same period, using a metric exemplar if available or filtering traces by service, namespace, and error status. Suppose the trace shows checkout calling payments, with the payments span timing out after five seconds. This identifies where the request stalled, but not why the payment operation timed out.

Step 4: Correlate logs and Kubernetes events. Filter logs using the trace ID to find the corresponding payment error, then check the payments pods for restarts, BackOff events, and kube_pod_container_status_last_terminated_reason{reason="OOMKilled"}. A rise in the restart counter alongside an OOM-killed termination suggests that memory exhaustion contributed to the timeouts. To determine whether the checkout deployment caused the memory pressure, compare payment request volume, concurrent calls, memory usage, and rollout history before drawing a conclusion.

If the evidence confirms that increased payment-service concurrency caused memory exhaustion, reduce concurrency or adjust the container’s memory allocation, then verify that restarts stop and the checkout error rate returns to baseline.

Use SLO-Based Alerting Without Creating Alert Fatigue

A service-level objective (SLO) defines a reliability target for a service-level indicator (SLI). For example, a 99.9% request-success SLO over 30 days allows 0.1% of requests to fail. If checkout processes 3 million requests during that period, its error budget is 3,000 failed requests, and an incident causing 1,500 failures consumes half that budget.

Instead of paging for every infrastructure event, alert when failures threaten service reliability. Burn rate measures how quickly a service consumes its error budget relative to the SLO period. Multiwindow, multi-burn-rate alerting requires both a longer and shorter observation window to exceed the same threshold, helping detect sustained problems without keeping alerts active long after recovery.

For a 99.9% SLO measured over 30 days, use these starting thresholds:

SeverityLong WindowShort WindowBurn RateError Budget Consumed
Page1 hour5 minutes14.42%
Page6 hours30 minutes65%
Ticket3 days6 hours110%

The short window helps alerts clear soon after the error rate returns to normal, even if the longer window still contains failures. These thresholds work best for services with enough traffic to produce meaningful error rates. For low-traffic services, a handful of failed requests can create large fluctuations, so you may need different alert windows or synthetic checks.

Configure Alertmanager to group related alerts by labels such as service, namespace, and severity. Deduplication, inhibition, and silencing reduce repeated notifications, while diagnostic signals such as individual pod restarts remain available for investigation. A pod restart does not automatically justify paging someone if service reliability remains unaffected.

Control Metric Cardinality, Retention, and Monitoring Costs

Every unique combination of metric label values creates a separate time series. For example, http_requests_total with 20 pods and five observed status-code values produces 100 active series. If ten different groups of 20 pods run during rollouts and autoscaling, historical queries may encounter 1,000 distinct series even when only 100 are currently active. This is why high cardinality and workload churn can increase monitoring costs.

Active series consume memory in Prometheus, while historical series occupy disk space and increase the amount of data processed by long-range queries. To control these costs:

  • Limit high-cardinality labels: Avoid user IDs, email addresses, request IDs, and other values that create large numbers of unique series. Store request-specific details in logs or traces instead.
  • Aggregate by stable workload identifiers: Use service and namespace labels for longer-term trends while retaining pod-level metrics when you need them for recent investigations.
  • Set retention policies: Keep detailed metrics for the period needed to troubleshoot incidents and retain aggregated data longer where your storage backend supports separate retention policies.
  • Downsample historical metrics: The Thanos Compactor creates five-minute-resolution blocks from data older than 40 hours and one-hour-resolution blocks from data older than 10 days. This improves long-range query efficiency but does not automatically reduce storage consumption while raw blocks remain.
  • Manage trace sampling: Sampling reduces the amount of trace data retained, but discarded traces cannot be recovered. Configure sampling and retention policies around the investigations your team needs to perform.

Monitoring costs also depend on the provider’s billing model. Ingestion-based pricing grows with the volume of telemetry collected, while metric-based pricing can increase with the number of billable series. With groundcover’s per-node pricing, ingestion volume and metric cardinality do not change the subscription cost, although customer-owned BYOC compute and storage expenses still depend on data volume and retention.

Cloud-Native Monitoring Tools and Their Roles

Cloud-native monitoring requires tools for collecting, storing, querying, and alerting on telemetry. You can combine tools that specialize in individual functions or use a full-stack observability platform that provides these capabilities in one system.

ToolPrimary RoleKey Considerations
PrometheusCollects and stores metrics, supports PromQL queries and alerting rulesLocal storage is not clustered or replicated; long-term storage and high availability typically require components such as Thanos or Mimir
OpenTelemetry CollectorReceives, processes, and exports metrics, logs, and tracesDoes not provide persistent telemetry storage; collectors and pipelines need configuration, scaling, and maintenance
GrafanaVisualizes metrics, logs, and traces through dashboards and queriesRequires connected data sources; highly available deployments need a shared MySQL or PostgreSQL database
LokiStores and queries logs using LogQLIndexes labels rather than log contents; high-cardinality labels increase resource usage, and scalable deployments typically use object storage
JaegerCollects, stores, and queries distributed tracesJaeger v2 uses the OpenTelemetry Collector framework and requires persistent storage, such as OpenSearch, Elasticsearch, or Cassandra, for production deployments
groundcoverProvides full-stack observability with eBPF-based collection of application and infrastructure telemetryManaged BYOC backend, automatic eBPF collection, OpenTelemetry integration, and per-host pricing without ingestion charges.

You can build an open-source monitoring stack using the OpenTelemetry Collector for ingestion, Prometheus for metrics, Loki for logs, Jaeger for traces, and Grafana for visualization. While this gives you control over individual components, you also take responsibility for their deployment, scaling, upgrades, storage, and integration. Each component adds operational work, from managing Prometheus memory usage to maintaining trace storage and correlating telemetry across different backends.

If you need full-stack visibility without spending engineering time maintaining a multi-component observability stack, a full-stack observability platform is the better choice. You can focus on investigating and resolving production issues instead of operating the monitoring infrastructure itself.

Full-Stack Cloud-Native Monitoring With groundcover

groundcover combines application performance monitoring, infrastructure metrics, logs, traces, and Kubernetes events in one platform. Its eBPF sensor automatically captures telemetry from supported workloads, while OpenTelemetry and Prometheus integrations let you bring existing monitoring data into the same investigation workflow.

Automatic Application Monitoring With eBPF

groundcover uses its eBPF sensor, to monitor application traffic without requiring code changes or SDKs for every service. Deployed as a Kubernetes DaemonSet, the sensor reconstructs transactions such as HTTP requests and database queries, then enriches them with metadata identifying the involved pods, services, and nodes. You can track request latency, errors, and service dependencies while connecting application problems to the infrastructure running those workloads.

Flora automatically generates application metrics and traces from the traffic it observes. You can combine this telemetry with OpenTelemetry spans, Prometheus metrics, and logs from existing collectors to investigate application behavior alongside Kubernetes events. For example, when checkout latency increases, you can examine the request path, identify a slow database dependency, and inspect related logs without switching between separate monitoring tools.

BYOC Architecture and Predictable Monitoring Costs

With groundcover’s BYOC architecture, your observability backend runs in your AWS, GCP, or Azure environment. ClickHouse stores logs, traces, and Kubernetes events, while VictoriaMetrics stores metrics. groundcover manages the backend, allowing you to retain telemetry storage in your cloud without maintaining these databases yourself.

Unlike ingestion-based pricing, groundcover charges by monitored hosts, so increasing telemetry volume or metric cardinality does not increase your platform subscription. Your cloud provider still bills for the compute and storage used by the BYOC backend, giving you control over retention and infrastructure spending. You can evaluate the architecture using groundcover’s free BYOC plan, which includes 12 hours of telemetry retention.

AI-Powered Incident Investigations

With groundcover Agent Mode, you can investigate production issues using natural-language requests. Ask why checkout errors increased after a deployment, and the agent can examine metrics, traces, logs, Kubernetes events, and workload state to identify relevant changes and suspected causes. You can also generate dashboard and monitor drafts without writing every query manually.

groundcover Investigations extends this workflow by organizing root cause analysis into hypotheses with supporting evidence. You can inspect underlying queries, mark hypotheses as supported or refuted, and review remediation suggestions before acting. Through the groundcover MCP Server, you can also access production telemetry from assistants such as Cursor, Claude Code, and Codex. Your telemetry remains stored in your BYOC backend, while the configured LLM provider processes the relevant query results needed for AI-assisted analysis.

Automated Kubernetes Resource Optimization

Autonomous Infrastructure uses production resource measurements to recommend CPU and memory requests for your Kubernetes Deployments. It accounts for workload usage, node contention, and sidecar resource requirements rather than evaluating each container in isolation.

You can compare existing and recommended requests, inspect their estimated monthly cost impact, and choose which workloads to optimize. Once enabled for a workload, groundcover automatically adjusts resource requests within your configured boundaries, helping you reduce overprovisioning and maintain appropriate resource allocation as workload demands change.

FAQs

Traditional monitoring tracks servers and services using configured targets and host-level metrics. Cloud-native monitoring automatically discovers workloads, attaches Kubernetes metadata to telemetry, and retains data after pods or containers disappear. This allows you to track services through deployments, scaling events, and workload replacements without updating monitoring targets manually.

Cloud-based monitoring refers to monitoring services hosted in the cloud. Cloud-native monitoring describes how you monitor dynamic workloads, whether the monitoring platform runs in the cloud or on-premises.

Monitoring uses metrics, alerts, thresholds, and anomaly detection to identify changes in system health. Observability uses metrics, logs, traces, and events to investigate why those changes occur. For example, monitoring detects an increase in checkout errors, while observability lets you follow failed requests through the payment service to identify the cause.

No. Kubernetes monitoring focuses on clusters, nodes, pods, containers, and Kubernetes-managed workloads. Cloud-native monitoring also covers serverless functions, managed databases, and microservices running outside Kubernetes. It connects telemetry across these environments so you can investigate requests that cross infrastructure boundaries.

Collect and export telemetry before workloads terminate. Run a node-level logging agent, such as Fluent Bit or the OpenTelemetry Collector, to forward container logs to persistent storage. Collect Kubernetes events and workload metadata so you can investigate crashes, evictions, and restarts after pods disappear.

Kubernetes ephemeral containers let you debug a pod while it still exists, but investigating a deleted pod requires telemetry exported before its removal. For short-lived service-level batch jobs that finish between Prometheus scrapes, use an appropriate push-based collection method to preserve their final metrics.

Prometheus collects, stores, queries, and alerts on metrics. OpenTelemetry instruments applications and provides pipelines for collecting and processing metrics, logs, and traces. The OpenTelemetry Collector can scrape Prometheus-format endpoints, while Prometheus can receive OTLP metrics directly. You can combine them to monitor infrastructure metrics alongside application telemetry.

Cloud-native monitoring provides telemetry for investigating suspicious workload activity. Network data reveals unexpected connections, application logs expose unusual requests, and Kubernetes audit logs record API activity when auditing is configured. Correlating these signals with pod and deployment metadata allows you to trace suspicious activity to affected workloads and investigate security incidents.

groundcover provides full-stack observability and application performance monitoring (APM) through its eBPF sensor, Flora. It automatically captures application metrics and traces from supported traffic, adds Kubernetes context, and combines them with logs, events, and telemetry from OpenTelemetry and Prometheus integrations.

Agent Mode and Investigations analyze production incidents across these signals. Its BYOC architecture keeps telemetry storage in your cloud, while per-host pricing removes ingestion-based platform charges so your subscription does not increase with telemetry volume.

Sign up for Updates

Keep up with all things cloud-native observability.

We care about data. Check out our privacy policy.