get-resource-usage

Retrieve CPU and memory usage metrics for Kubernetes nodes and pods.

3|Updated Dec 2, 2025
One-click install
npx skills add https://github.com/X-McKay/kubani --skill get-resource-usage
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: get-resource-usage
Source: https://github.com/X-McKay/kubani/tree/main/kubani/skills/k8s/collection/get-resource-usage
Command: npx skills add https://github.com/X-McKay/kubani --skill get-resource-usage

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill provides insights into Kubernetes cluster resource consumption, helping to identify potential bottlenecks or underutilized resources.

Core Features & Use Cases

  • Node Resource Metrics: Retrieves CPU and memory usage for all nodes in the cluster.
  • Pod Resource Metrics: Fetches CPU and memory usage for pods across all namespaces.
  • Node Stats Summary: Provides detailed statistics from the kubelet for specific nodes.
  • Use Case: Use this Skill to diagnose performance issues by checking if specific nodes or pods are consuming excessive resources, aiding in capacity planning.

Quick Start

Get the current resource usage for all nodes and pods in the cluster.

Frequently Asked Questions about get-resource-usage

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I check CPU and memory usage across Kubernetes nodes and pods?

To check Kubernetes resource usage, you can retrieve CPU and memory utilization metrics for all nodes and pods to diagnose performance issues and support capacity planning across your cluster.

What Kubernetes metrics can I collect for diagnosing cluster performance bottlenecks?

Kubernetes metrics collected for diagnosing bottlenecks include node and pod CPU consumption, memory usage, and detailed kubelet statistics to help identify underutilized or overloaded resources.

Do I need a metrics server installed to monitor Kubernetes resource usage?

Yes, you need the Kubernetes metrics server installed and operational in your cluster to accurately retrieve current resource usage data for nodes and pods.

Can I get detailed kubelet statistics for a specific Kubernetes node?

Yes, you can retrieve detailed node stats summaries directly from the kubelet for specific Kubernetes nodes to investigate deeper resource-related issues and capacity constraints.

What is the best way to investigate excessive resource consumption by pods in a Kubernetes cluster?

The best way to investigate excessive pod resource consumption is to fetch CPU and memory usage metrics across all namespaces, allowing you to pinpoint specific pods consuming excessive resources.

Why are my Kubernetes resource usage metrics not returning accurate data?

Kubernetes resource usage metrics may be inaccurate if the required metrics server is not installed or not operational, as the data retrieval relies entirely on this component functioning correctly.