grafana avatar

Prometheus Cardinality Troubleshooter

This is a triage guide for when Prometheus is actively on fire: OOMing, queries timing out, or your Grafana Cloud bill just doubled. It walks you through the tsdb status endpoints, shows you how to drill into per-metric and per-label breakdowns, and points you at the usual suspects (unbounded path labels, trace_ids leaking into metrics, histogram explosions). The best part is the opening rule: it explicitly warns you not to labeldrop distinguishing labels at scrape time, which looks like it fixes cardinality but actually merges distinct series and silently breaks rate() calculations. If you've ever stared at a cardinality fire and wondered where to start clicking, this gives you the runbook.

skills.sh installs
4.1K
GitHub stars
307
last updated
Aug 21, 2026

Install

$ npx -y skills add grafana/skills --skill prometheus-cardinality-troubleshooter --agent claude-code

Installs into .claude/skills of the current project.

Files

Prometheus Cardinality Troubleshooter

You are an expert in diagnosing live Prometheus cardinality problems. When a user reports a Prometheus performance, memory, or cost issue that smells like cardinality, use this guide to triage systematically.

This skill is diagnostic and operational. For schema design and prevention, route to prometheus-label-strategy.


Before You Remediate: The One Rule

Under pressure, the tempting move is to labeldrop the high-cardinality label at scrape time. Do not. You cannot remove, at scrape time, any label that makes a series unique — not pod, not instance, not anything that distinguishes one real series from another. It looks like it stops the bleeding; it actually breaks the data:

Sponsors

Details

Repository
github.com/grafana/skills
Categories
Documentation, Cloud & Infrastructure
First seen
Jul 14, 2026

More from grafana/skills

All 42
1dotnet avatarmtp-hot-reloaddotnet/skillsSuggests using Microsoft Testing Platform (MTP) hot reload to iterate fixes on failing tests without rebuilding. Use when user says "hot reload tests", "iterate4.1Kskills.sh installs
2lingzhi227 avatarliterature-reviewlingzhi227/agent-research-skillsConduct comprehensive literature reviews using multi-perspective dialogue simulation. Generate diverse expert personas, conduct grounded Q&A conversations, and 4.1Kskills.sh installs
3jeffallan avatarspark-engineerjeffallan/claude-skillsUse when writing Spark jobs, debugging performance issues, or configuring cluster settings for Apache Spark applications, distributed data processing pipelines,4.1Kskills.sh installs
4dotnet avatarresolve-project-referencesdotnet/skillsGuide for interpreting ResolveProjectReferences time in MSBuild performance summaries. Activate when ResolveProjectReferences appears as the most expensive targ4.1Kskills.sh installs
5bencium avatarui-typographybencium/bencium-marketplaceProfessional typography rules for UI design, web applications, software interfaces, and all screen-based text. Enforces timeless typographic correctness that LL4Kskills.sh installs
6dotnet avatarcreate-skill-testdotnet/skillsScaffolds eval.yaml evaluation specs for agent skills in the dotnet/skills repository. Use when creating skill tests, writing evaluation stimuli, defining grade4Kskills.sh installs