Kubernetes Workloads CPU and Memory Metrics
8,875

Created 1/28/2024
Updated 8/31/2024
Revision 3
Categories
Docker
Grafana Version >=11.1.0
Datasources
Prometheus

Simple dashboard for observing your Kubernetes Deployment CPU and Memory usage based on Kube State Metrics for Deployment only.

Requirements

  • Prometheus
  • Kube State Metrics
  • Kubernetes cAdvisor

Built-in features

  • filters: you could filters your Deployment based on namespace, deployment and pods
  • summary rows: you could see CPU and memory usage per deployment. It's aggregated by sum from all pods CPU and memory usage within the deployment. You can see also the CPU and memory request / limit config on this panel
  • pods resource usage rows: you could see repeatable rows based on num of pods which available on the deployment. You can see CPU and Memory usage specifically for selected pods

Testing

  • Grafana version: 9.5.3
  • K8s distribution: Minikube
  • Testing tools: stress-ng

Fixes

2 Aug 2024

  • set tooltip mode in all line chart panels to "All"
  • fix aggregate on cpu limit query for the deployment
  • fix aggregate on memory limit query for the deployment

1 Sep 2024

  • add filter for statefulset and daemonset
Export Dashboard
Download
Copy to Clipboard

Used Metrics 5