Kubernetes Monitoring: The Ultimate Guide

Key Takeaways

  • Effective Kubernetes monitoring requires collecting and analyzing metrics, logs, and events from both the platform and the applications running on it, including nodes, pods, and control-plane components.
  • Leveraging dedicated monitoring tools, industry standards, and best practices — such as Fluentd and OpenTelemetry — enhances observability, scalability, and reliability in Kubernetes environments.
  • Real-time, unified monitoring solutions like Splunk Observability Cloud enable teams to detect issues early, optimize resource usage, and maintain seamless operations by providing end-to-end visibility and rapid incident response.

One of the first things you’ll learn when you start managing application performance in Kubernetes? It’s complicated. No matter how well you’ve mastered performance monitoring for conventional applications, Kubernetes monitoring is a very different technical landscape.

Since Kubernetes environments are dynamic, distributed, and ephemeral, getting the telemetry data you need to monitor successfully is much more challenging.

In this article, we’ll cover everything you need to know about Kubernetes monitoring, including:

What is Kubernetes monitoring?

Many businesses rely heavily on Kubernetes (K8s) to manage and scale their containerized applications. In fact, 84% of organizations are either evaluating or already using Kubernetes in production.

However, as Kubernetes environments grow, they quickly become complex due to:

These things make it difficult to collect telemetry data from the right sources, get the context needed to diagnose the root cause of issues, and ensure that applications and infrastructure are running smoothly. To address these challenges, organizations implement Kubernetes monitoring solutions.

Implementing Kubernetes monitoring provides visibility into the performance and health of Kubernetes environments by exposing critical telemetry data like metrics, logs, and traces. With insight into key metrics, Kubernetes monitoring can help:

Why Kubernetes monitoring is important

Since most applications are distributed, monitoring becomes necessary for maintaining reliability by helping DevOps teams and system administrators answer questions such as:

When done right, monitoring provides actionable insights to preempt potential bottlenecks and reduce system disruptions, which improves the overall user experience.

Key metrics to monitor in K8s

There are several types of Kubernetes metrics and each one provides specific insights. So, let’s see what they are:

Cluster metrics help you track the overall health of the Kubernetes cluster. They include information like:

Control plane metrics provide insights into the components responsible for maintaining the desired state of the cluster. For example, monitoring metrics around the scheduler, controller manager, and API server can help detect issues before they impact cluster health and workloads.

(Related reading: control plane vs. data plane.)

Node metrics focus on individual nodes within the cluster. They show how much of a node's resources — such as CPU, memory, network bandwidth, and disk space — are being used.

Pod metrics. Pods are the smallest deployable units in Kubernetes and contain one or more containers. Pod and container metrics include resource usage and pod/container statuses (running, pending, failed, waiting, terminated, etc.) and they identify whether the requested resources are being successfully scheduled.

Workload and application metrics monitor the applications running within your pods. They give insights into app-specific performance indicators, such as:

Challenges in Kubernetes monitoring

Kubernetes has become the de facto standard for container orchestration. However, monitoring and observability are two of the biggest challenges in adopting Kubernetes, second only to a lack of training around containerized environments.

In the latest CNCF survey, 46% of those surveyed say this lack of training is a key challenge for organizations beginning their cloud-native journey. Security concerns (40%) and the complexities of monitoring and observability with container proliferation further complicate adoption. But here are the reasons behind these challenges:

A new approach is needed

To address these challenges, a new approach is required to monitor Kubernetes-based environments effectively. Here’s what it should look like:

(Related reading: Kubernetes logging done right.)

Best practices for Kubernetes monitoring

Here are some of the best practices to follow when monitoring Kubernetes:

Choose relevant metrics

Not all data is equally useful. Focus specifically on system and application metrics because they directly impact your system's health and performance.

So, align these metrics with your business objectives and define collection rates and retention periods for efficient data management.

(Related reading: SRE metrics to know.)

Implement comprehensive labeling

Use labels (key-value pairs) attached to Kubernetes objects like pods and nodes to organize and manage your resources.

kubernetes objects

For example, you can label pods by deployment name or environment ('app=web' or 'env=production') for easy filtering and aggregation of metrics. This will simplify both monitoring and troubleshooting since you can focus on specific subsets of your infrastructure.

Use service auto-discovery

As your cluster grows, manually configuring monitoring for each new service becomes impractical. Implement service auto-discovery to detect and monitor new services as they are deployed automatically.

Set up real-time alerting

Configure alerts to notify you of critical issues, such as high resource usage or application errors. Make sure that alerts are actionable and directed to the appropriate teams for swift resolution. This will prevent minor issues from escalating into major problems.

Tools for Kubernetes monitoring

Monitoring Kubernetes can be challenging — however, the right tools make it easier by helping you track what's happening in your clusters. Let’s look at some of the most common tool options:

Kubernetes Dashboard

Kubernetes Dashboard provides a basic UI for getting resource utilization information, managing applications running in the cluster, and managing the cluster itself.

You can deploy it with Helm using the following commands:

# Add kubernetes-dashboard repositoryhelm repo add kubernetes-dashboard https://kubernetes.github.io/dashboard/# Deploy a Helm Release named "kubernetes-dashboard" using the kubernetes-dashboard charthelm upgrade --install kubernetes-dashboard kubernetes-dashboard/kubernetes-dashboard --create-namespace --namespace kubernetes-dashboard

You must create a secure channel for your Kubernetes cluster to access the Dashboard from your local workstation. To do so, run the following command:

$ kubectl -n kubernetes-dashboard port-forward svc/kubernetes-dashboard-kong-proxy 8443:443

``

Kubewatch

Kubewatch is a simple tool for monitoring your Kubernetes cluster. It sends alerts to platforms like Slack or Microsoft Teams whenever something changes in your cluster, such as updates to pods or services. You can set up these notifications using an easy-to-edit YAML file and get real-time updates about what's happening.

You can set up Kubewatch manually or with Helm charts. Unlike other monitoring tools, it gives fast alerts to keep you in the loop about your cluster's activity.

However, it can also overwhelm you with excessive notifications and users report that it provides no options to customize messages or filter specific event types. This makes it hard to focus on critical actions.

Lastly, and perhaps most importantly, Kubewatch is no longer under active development.

Splunk

Splunk offers intuitive and comprehensive Kubernetes monitoring, no matter what your needs are. If you're using a cloud provider like AWS or Google, Splunk can connect directly to services like CloudWatch or Stackdriver to collect basic metrics — without requiring an agent.

Successful implementation of Splunk Observability offers many outcomes, including:

Users of Splunk Observability can also opt into Observability Kubernetes Accelerator. This optional accelerator helps you take greater advantage of Splunk Observability and implement data onboarding using the power of OpenTelemetry, greatly improving your team’s visibility into your Kubernetes environment.

(Learn more about monitoring K8s with Splunk.)

Configuring Splunk Observability for K8s monitoring

You can easily configure Splunk Observability and set up Kubernetes monitoring by deploying the Splunk OpenTelemetry Collector for Kubernetes via Helm. With Helm (3.x) installed, simply run the following commands to send telemetry data from your Kubernetes environment to Splunk Observability Cloud:

  1. helm repo add splunk-otel-collector-chart https://signalfx.github.io/splunk-otel-collector-chart
  2. helm install my-splunk-otel-collector --set="splunkObservability.realm=us0,splunkObservability.accessToken=xxxxxx,clusterName=my-cluster" splunk-otel-collector-chart/splunk-otel-collector
  3. Optionally add annotations to enable automatic discovery of apps and services

Wrap up

Monitoring applications in Kubernetes may seem daunting. But ultimately it’s not so different from application monitoring in other ecosystems. The dynamic, distributed, and ephemeral nature of Kubernetes environments creates unique monitoring challenges. However, with the right monitoring tools, accessing and analyzing the telemetry data you need can help achieve a successful Kubernetes monitoring practice.

Related Articles

Snort Rules 101: Examples & Use Cases for Snort Network Defense
Learn
5 Minute Read

Snort Rules 101: Examples & Use Cases for Snort Network Defense

Learn how Snort rules enhance network defense by identifying and blocking potential threats, providing customizable protection against evolving cyberattacks.
Information vs. Operational Technology: IT vs. OT Explained
Learn
4 Minute Read

Information vs. Operational Technology: IT vs. OT Explained

Explore the differences between IT and OT, their roles in cybersecurity, and how their convergence is reshaping industrial efficiency and safeguarding critical systems.
What Is Lateral Movement?
Learn
4 Minute Read

What Is Lateral Movement?

Lateral movement is one way threat actors can exploit your protected systems and networks. Get the full story here.
What’s Chaos Monkey? Its Role in Modern Testing
Learn
4 Minute Read

What’s Chaos Monkey? Its Role in Modern Testing

Chaos Monkey is an open-source tool that software developers can use to simulate chaos and test the resilience and reliability of their systems.
IT Strategic Planning: A How-To Guide
Learn
4 Minute Read

IT Strategic Planning: A How-To Guide

An IT strategy is a specific plan for how digital technology and assets should be used to meet organizational goals. Read on for how to create your own IT strategy.
Data Quality & Data Quality Management (DQM)
Learn
8 Minute Read

Data Quality & Data Quality Management (DQM)

In the data age, you must ensure your data is quality data. Learn what that means, and how to achieve it with data quality management.
Security Compliance Auditor Role: Skills and Responsibilities
Learn
6 Minute Read

Security Compliance Auditor Role: Skills and Responsibilities

Learn who security compliance auditors are and how they can make non-compliant systems compliant.
Access Points: A Complete Introduction
Learn
7 Minute Read

Access Points: A Complete Introduction

All those wireless devices we rely on daily connect thanks to access points, instead of cables and wires. Learn more here.
Fundamentals of Metadata Management
Learn
5 Minute Read

Fundamentals of Metadata Management

Metadata management includes a set of processes, policies, and technologies that govern how metadata is managed within an organization.