SBN

Building a Kubernetes Platform: What You Need to Monitor in K8s & Why


A Kubernetes platform needs monitoring that helps teams understand cluster health, workload behavior, and resource use. That feedback helps engineers investigate problems and decide what needs to change.

The challenge is deciding what to collect and what deserves attention. Kubernetes exposes metrics across several layers, and collecting more data doesn’t automatically make it easier to identify problems.

Monitoring Is Part of Feedback

Monitoring tracks a system’s health and performance over time. Teams use the collected data to identify changes, investigate problems, and trigger alerts when intervention is needed.

Observability is the ability to understand a system’s internal state through its outputs. Metrics, logs, and traces help teams investigate behavior and diagnose problems, including those they didn’t anticipate.

Monitoring and observability overlap. The distinction is broader than whether an activity is proactive or reactive.

Specific Challenges in Kubernetes

There are challenges in Kubernetes related to both observability and monitoring. Pods and nodes can be created and removed as the cluster changes. Your monitoring system needs to account for that changing infrastructure.

Kubernetes is distributed, and workloads can share nodes and other cluster resources. In multi-tenant environments, monitoring also needs to account for the teams and workloads sharing that infrastructure.

Now, you may have two containers living on the same node competing for the same CPU resources or the same memory. Kubernetes networking includes communication between pods, nodes, and Services. The details depend on the cluster’s network implementation, adding another area to investigate when workloads can’t communicate as expected.

Kubernetes components, add-ons, and applications can expose metrics, but those metrics serve different purposes. The API server and controller manager expose component metrics. Metrics Server provides CPU and memory resource metrics for autoscaling and basic inspection; it doesn’t replace a full monitoring pipeline.

The challenge is deciding which data helps you understand system health and investigate problems.

Options for Monitoring

Prometheus and Grafana  are commonly used together to collect and display Kubernetes metrics. Prometheus collects and stores metrics, while Grafana provides dashboards for exploring them. Commercial platforms (such as Datadog) are another option.

Exposing a metrics endpoint doesn’t mean its data is automatically collected. Your monitoring pipeline must be configured to discover and collect the metrics you need.

The Difference Between Monitoring and Alerting

Monitoring collects and analyzes data about system behavior over time. Dashboards and historical data help teams understand trends and investigate problems, even when no immediate response is needed.

Alerting notifies someone when a condition needs attention. An alert that pages an engineer should identify a problem that requires timely human action. Other findings can be reviewed without interrupting the on-call engineer.

There are a few layers to monitoring: 

  • Cluster-Level Monitoring: Track the health and performance of the cluster and its components.
  • Node-Level Monitoring: Track the health and resource use of the nodes running your workloads.
  • Pod- and Container-Level Monitoring: Track workload resource use and lifecycle behavior. Application metrics provide additional information about the service running inside the containers.

Some metrics are useful at more than one layer. Keep the scope clear when interpreting them.

What Do You Monitor?

Collecting and retaining more monitoring data can increase storage costs and make useful signals harder to find. Decide what each metric helps you understand, investigate, or act on rather than assuming that collecting everything guarantees coverage.

Fairwinds recommends monitoring these areas:

  • Pods and Their Controllers: Monitor whether workloads and their controllers are behaving as expected. Track service errors, latency, and timeouts separately from controller health.

  • CPU and Memory Usage: Track how much CPU and memory your workloads are using.

  • Cluster Health and Workload Lifecycle: Track the orchestration layer, overall cluster health, and workload lifecycle events.

  • Workload Costs: Track what it costs to run your clusters and workloads. Use resource usage and rightsizing data to understand how CPU and memory settings affect capacity and spend.

  • Runtime Security: Falco, for example, uses rules to detect suspicious runtime activity from Linux kernel events.

  • Workload Behavior and Performance: Compare observed behavior with what you expect from the workload to help identify changes that need investigation.

Golden Signals

Google’s Site Reliability Engineering book describes four golden signals for monitoring distributed systems.

  1. Latency: How long does it take to service a request?

  2. Traffic: How much traffic is coming in? How many requests per second or transactions per second are there? 

  3. Errors: What proportion of requests fail, including requests that return an apparently successful response but produce an incorrect result?

  4. Saturation: How close is your service to exhausting its most constrained resources? Track available capacity and recognize that performance can degrade before a resource reaches full utilization.

Use the four golden signals as a starting point for monitoring service health. Define paging conditions around problems that require timely human action, including resource exhaustion that could affect users.

Make Alerts Actionable

Reserve paging for conditions that require timely human intervention. These can include problems affecting users and resource constraints that could soon affect service. Route lower-priority findings to a channel where the team can review them without waking the on-call engineer.

Each page should give the responder a clear reason to act. Where a problem can be resolved safely through automation, reduce the need for repeated manual intervention.

Need support with the Kubernetes operations behind these monitoring decisions? Explore Fairwinds Managed Kubernetes or talk with our team.

Originally published July 18, 2023. Updated October 22, 2026.