Kubernetes Monitoring

Kubernetes Monitoring Template

Telegraf Plugins used:

Included Resources:

  • 2 Labels: inputs.kubernetesinputs.kube_inventory, K8S
  • 2 Dashboards: Kubernetes Node Metrics, Kubernetes Inventory
  • 1 Variables: bucket
  • 1 Telegraf Config: K8S Configuration

Quick Install

If you have your InfluxDB credentials configured in the CLI, you can install this template with:

https://raw.githubusercontent.com/influxdata/community-templates/master/k8s/k8s.yml

Kubernetes is an open-source container-orchestration system for automating computer application deployment, scaling and management. Originally designed by Google, and maintained by the Cloud Native Computing Foundation, Kubernetes is used by millions to eliminate the manual steps involved in deploying and scaling containerized applications.

Why monitor Kubernetes

Monitoring Kubernetes ensures that Kubernetes clusters utilize underlying resources efficiently. It also requires active management and continuous optimization based on historical data. This can be accomplished by collecting and analyzing Kubernetes resource metrics to identify idle resources, dynamically optimize infrastructure footprint, and cut waste. CPU and memory are the two types of resources that are consumed by containers and can be managed using resource requests and resource limits. Limits are the maximum amount that is consumed by the containers, and resource requests are the minimum amount requested.

The Kubernetes Monitoring Template provides 2 basic Kubernetes dashboards: Kubernetes Node Metrics and Kubernetes Inventory. The K8S infrastructure supports Google Cloud Platform, AWS and on-premise K8S environments.

Kubernetes Monitoring Dashboard

Kubernetes Inventory Dashboard

How to use the Kubernetes Monitoring Template

Once your InfluxDB credentials have been properly configured in the CLI, you can install the Kubernetes Monitoring Template using the Quick Install command. Once installed, the data for the dashboard will be populated by the included Telegraf configurations, which include the relevant Kubernetes Input. Note that you might need to customize the input configuration to better serve your needs, including by specifying a new input value. All of this will depend on how your organization is currently running Kubernetes.

To find out more information about environmental variables within the Telegraf configuration, consult the following link.

Key Kubernetes monitoring metrics to monitor

Some of the most important Kubernetes monitoring metrics that you should proactively monitor include:

  • Current and Past Nodes
  • CPU Metrics
  • Node Count
  • Pod Capacity
  • Host Count
  • Allocatable CPU cores
  • Average CPU capacity
  • Running Containers
  • Nodes CPU usage
  • Resources
  • Daemon Sets

Related Resources

Kubernetes monitoring solution

Real-time visibility into your entire container-based environment for faster root cause analysis.

Kubernetes Telegraf Plugin

A Telegraf plugin that talks to the kubelet API to gather metrics about the running pods and containers for a single host.

Read the blog

Scaling Kubernetes Monitoring without Blind Spots or Operations Burden

Scroll to Top