kubesense-metrics

Discover Kubernetes metrics, inspect labels, and run PromQL queries via MCP tools.

Updated Apr 28, 2026
One-click install
npx skills add https://github.com/kubesense-ai/kubesense-mcp-skills --skill kubesense-metrics
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: kubesense-metrics
Source: https://github.com/kubesense-ai/kubesense-mcp-skills/tree/main/kubesense-mcp/kubesense-metrics
Command: npx skills add https://github.com/kubesense-ai/kubesense-mcp-skills --skill kubesense-metrics

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Query and analyze Kubernetes metrics using MCP tools to make metric discovery, label inspection, and PromQL querying reliable and repeatable.

Core Features & Use Cases

  • Discover available metrics with get-available-metrics to identify candidates.
  • Retrieve metric labels using get-metric-labels to construct accurate PromQL filters.
  • Run PromQL queries with analyze-metrics to monitor namespace, pod, and service-level metrics across time windows.

Quick Start

Discover metrics with get-available-metrics, fetch labels for a selected metric with get-metric-labels, then execute analyze-metrics for a chosen time window.

Frequently Asked Questions about kubesense-metrics

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

FAQPage Schema
How do I query Kubernetes metrics using PromQL across namespaces and services?

To query Kubernetes metrics, you must discover available metrics with get-available-metrics, retrieve labels using get-metric-labels, then execute PromQL queries via analyze-metrics to monitor namespace, pod, and service-level metrics across time windows.

What is the best way to discover available Kubernetes metrics before writing a PromQL query?

The best way to discover Kubernetes metrics is using get-available-metrics to identify candidates, followed by get-metric-labels to construct accurate PromQL filters, and finally executing analyze-metrics for the chosen time window.

Can I inspect metric labels to construct accurate PromQL filters for Kubernetes monitoring?

Yes, you can inspect metric labels using get-metric-labels to construct accurate PromQL filters. This ensures your Kubernetes monitoring queries via analyze-metrics target the correct namespaces, pods, or services.

Do I need to know available metric names before analyzing Kubernetes metrics with MCP tools?

Yes, you need to know available metric names before analyzing Kubernetes metrics. The workflow requires discovering metrics with get-available-metrics and fetching labels with get-metric-labels before executing PromQL queries via analyze-metrics.

Why should I use label inspection before running Prometheus queries on Kubernetes deployments?

Label inspection with get-metric-labels is required to construct accurate PromQL filters, ensuring your analyze-metrics queries reliably target specific namespaces, pods, and services within Kubernetes deployments without errors.