> ## Documentation Index
> Fetch the complete documentation index at: https://notes.kodekloud.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Observability for Platforms What to Measure and Why

> Guide to platform observability explaining metrics, logs, traces, key signals, tools, and measurement categories to enable detection, diagnosis, and reliable operation of cloud native platforms

Welcome to the Observability and Operations domain — the area that separates platform engineers who merely build platforms from those who keep them running reliably.

Core question: when something goes wrong on your platform (and it will), how quickly can you answer:

* What happened?
* Why did it happen?
* Where did it happen?

This guide builds a concise mental model for platform observability: metrics (Prometheus), dashboards (Grafana), traces (OpenTelemetry & Jaeger), centralized logging, and incident response.

![A slide titled "Learning Objectives" with a vertical, numbered list on a blue gradient background. The items cover cloud-native observability topics like why traditional monitoring is insufficient, the difference between monitoring and observability, the three pillars (metrics, logs, traces), mapping the stack to Kubernetes tools, and key metrics to track.](https://mintcdn.com/kodekloud-c4ac6d9a/seqLTE3JlSrVAtw9/images/Prep-Course-Certified-Cloud-Native-Platform-Engineering-CNPE/Observability-and-Operations/Observability-for-Platforms-What-to-Measure-and-Why/learning-objectives-cloud-native-observability.jpg?fit=max\&auto=format\&n=seqLTE3JlSrVAtw9\&q=85\&s=6e09f4183671c6acbf37ea75d9aff8fe)

Why this matters

Traditional monitoring is like walking a building floor-by-floor to find a failed fuse. Observability is like having a centralized building management dashboard that shows subsystem relationships, energy usage, and alarms so you can diagnose issues without opening every panel.

Real example: a SaaS company runs 120 microservices on Kubernetes. On Black Friday, checkout latency jumps from 200 ms to 8 seconds. Without centralized metrics, traces, and correlated deployment events, an on-call engineer spends 45 minutes chasing logs across namespaces and messaging teammates — delaying resolution and increasing customer impact.

With a properly instrumented platform, you should move from detection to diagnosis in minutes, not hours.

![A slide titled "Real-Life Problem" showing a SaaS company with a Kubernetes logo and "120 Microservices," where latency has jumped from 200 ms to 8 seconds. Below, a developer at a laptop asks "Did anyone deploy something?" with "45 mins" noted beside him.](https://mintcdn.com/kodekloud-c4ac6d9a/seqLTE3JlSrVAtw9/images/Prep-Course-Certified-Cloud-Native-Platform-Engineering-CNPE/Observability-and-Operations/Observability-for-Platforms-What-to-Measure-and-Why/saas-kubernetes-120microservices-latency-8s.jpg?fit=max\&auto=format\&n=seqLTE3JlSrVAtw9\&q=85\&s=689978d91ea14c2988b6cd36667808a1)

Monitoring versus observability

Monitoring and observability are complementary but distinct:

* Monitoring: predefined probes, thresholds, and alerts to answer “Is something wrong?” It detects known failure modes with checks and alarms.
* Observability: the property that lets you ask arbitrary questions about behavior and cause — including ones you didn’t plan for — by correlating multiple signals (metrics, traces, logs) to answer “What happened, why, and where?”

In short: monitoring tells you a problem exists; observability helps you diagnose it.

The three pillars of observability

Observability is commonly described through three signal types. Each has a unique role:

* Metrics: compact numeric time series (e.g., P50/P95/P99 latency, error rate, throughput). Ideal for dashboards, alerts, and trend analysis. Common tools: Prometheus (collector), Grafana (visualization).
* Logs: detailed, time-stamped text events and structured payloads that give context and human-readable failure messages. Tools to collect/forward logs: Fluentd, Fluent Bit; stores: Elasticsearch, Loki, or cloud logs.
* Traces: distributed request flows showing each hop and latency across services. Traces reveal which service/span is responsible for latency or errors. Instrumentation: OpenTelemetry SDKs and collectors; visualization: Jaeger, Tempo, or commercial tracing backends.

![A slide titled "The Three Pillars of Observability" showing three colored panels—Metrics, Logs, and Traces—with brief bullet points describing each (e.g., numeric measurements, timestamped events, request flows) and example tools like Prometheus→Grafana, Fluentd, and OpenTelemetry→Jaeger.](https://mintcdn.com/kodekloud-c4ac6d9a/seqLTE3JlSrVAtw9/images/Prep-Course-Certified-Cloud-Native-Platform-Engineering-CNPE/Observability-and-Operations/Observability-for-Platforms-What-to-Measure-and-Why/observability-metrics-logs-traces.jpg?fit=max\&auto=format\&n=seqLTE3JlSrVAtw9\&q=85\&s=5d2ca41408e737a1b9cceeb7887a3041)

Use metrics to detect anomalies, traces to locate the impacted request path, and logs to understand the precise root cause. Combining all three is essential for investigating unknown or complex failures.

Mapping pillars to tools and the platform stack

A practical Kubernetes observability stack maps to three logical layers:

* Signal sources (Expose): instrumented apps, kubelets, node exporters, service meshes.
* Collection layer (Collect): Prometheus scrapes metrics; OpenTelemetry collects traces; Fluentd/Fluent Bit forwards logs.
* Storage, visualization, and alerting (Store/Viz): Grafana dashboards, Jaeger (or Tempo) for traces, and Alertmanager for alerts/escalation.

This mapping helps you decide where to add instrumentation, where to deploy collectors, and where to present data to users.

![An infographic titled "The Platform Observability Stack" showing three stacked layers—Signal Sources (Expose), Collection Layer (Collect), and Viz and Alerting (Store)—with example tools like Prometheus, OpenTelemetry, Fluentd, Grafana, Jaeger, and AlertManager. A legend on the right gives short descriptions for each tool (metrics collection, dashboards, alerting, tracing).](https://mintcdn.com/kodekloud-c4ac6d9a/seqLTE3JlSrVAtw9/images/Prep-Course-Certified-Cloud-Native-Platform-Engineering-CNPE/Observability-and-Operations/Observability-for-Platforms-What-to-Measure-and-Why/platform-observability-stack-expose-collect-store.jpg?fit=max\&auto=format\&n=seqLTE3JlSrVAtw9\&q=85\&s=d98c31597ae7d45c621c8072ec73275c)

Tools at a glance

| Signal | Purpose | Typical tools |
| - | - | - |
| Metrics | Alerting, dashboards, SLA/SLO tracking | Prometheus, Grafana, Alertmanager |
| Traces | Distributed request flows, root-cause of latency | OpenTelemetry, Jaeger, Tempo |
| Logs | Context, stack traces, event details | Fluentd / Fluent Bit, Loki, Elasticsearch |
| Cost & Efficiency | Resource usage, cost attribution | OpenCost, cloud billing APIs |

What to measure — four practical categories

When designing metrics and dashboards, group signals into these actionable categories:

1. Golden signals (from Google SRE)
   * Latency: P50, P95, P99 request duration percentiles
   * Traffic: requests per second (RPS), throughput
   * Errors: error rate by endpoint/service
   * Saturation: resource saturation (CPU, memory, disk, network)
     If you can only measure four things, start with these.

2. Platform health
   * Node metrics: CPU, memory, disk I/O, network
   * Pod metrics: restarts, OOMKills, container CPU/memory usage, probe failures
   * Control plane: API server latency/errors, etcd health, scheduler latency
     These signals help detect infrastructure issues before they affect apps.

3. Deployment and delivery metrics (DORA)
   * Deployment frequency
   * Lead time for changes (commit → production)
   * Change failure rate
   * Mean time to recovery (MTTR)
     These show how your delivery pipeline impacts reliability and help prioritize platform improvements.

4. Cost and efficiency
   * Requested vs actual CPU/memory usage
   * Idle or over-provisioned resources
   * Cost per namespace/service/environment
     Visibility into cost helps balance reliability with spend; tools like OpenCost make this analysis easier.

![A slide titled "What to Measure and Why" listing four measurement categories: Golden Signals (latency, traffic, errors, saturation), Platform Health (node CPU/memory, pod restarts, storage, control plane latency), Deployment Metrics (deploy frequency, change failure rate, MTTR, rollbacks) and Cost & Efficiency (CPU/memory requests vs usage, cost per namespace, idle resource waste). It’s a checklist of monitoring and performance/cost metrics for running applications.](https://mintcdn.com/kodekloud-c4ac6d9a/seqLTE3JlSrVAtw9/images/Prep-Course-Certified-Cloud-Native-Platform-Engineering-CNPE/Observability-and-Operations/Observability-for-Platforms-What-to-Measure-and-Why/monitoring-metrics-performance-cost-checklist.jpg?fit=max\&auto=format\&n=seqLTE3JlSrVAtw9\&q=85\&s=1e02533d9f70622879e77b0fd3a9cba2)

Ownership and operational model

Platform teams should own and operate the observability stack as a self-service platform:

* Build and run collectors, storage, and visualization.
* Provide sane defaults: dashboards, alerting rules, tracing libraries, and onboarding guides.
* Offer templates and examples so application teams can instrument quickly and consistently.
* Define SLOs/SLIs and escalation policies so alerts are actionable and prioritized.

Summary

Observability is more than monitoring — it enables you to investigate unexpected behaviors by correlating metrics, traces, and logs. Build a cohesive observability platform that:

* Captures golden signals and platform health.
* Tracks delivery metrics (DORA) and cost/efficiency.
* Provides collectors, storage, visualization, and alerting as a managed self-service for application teams.

Operate the stack, enforce good defaults, and ensure teams can detect, diagnose, and recover from incidents quickly.

Links and references

* Google SRE — Golden Signals: [https://sre.google/sre-book/table-of-contents/](https://sre.google/sre-book/table-of-contents/)
* DORA (DevOps Research & Assessment): [https://devops-research.com/](https://devops-research.com/)
* Prometheus: [https://prometheus.io/](https://prometheus.io/)
* Grafana: [https://grafana.com/](https://grafana.com/)
* OpenTelemetry: [https://opentelemetry.io/](https://opentelemetry.io/)
* Jaeger: [https://www.jaegertracing.io/](https://www.jaegertracing.io/)
* OpenCost: [https://opencost.io/](https://opencost.io/)

> **[Watch Video](https://learn.kodekloud.com/user/courses/prep-course-certified-cloud-native-platform-engineer-cnpe/module/9bd090c8-8d99-4742-b50c-ae63e516e6b9/lesson/cbe0340a-9f87-477d-8288-1353a3c3a688)**


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.