
Description
loki-label-analyzer is an agent skill that acts as an expert evaluator of Grafana Loki label strategy. It is used when an assistant needs to audit, design or improve label schemas, or when a user asks why Loki queries are slow. The skill explains the core concepts: a stream is each unique combination of label key-value pairs, so too many streams cause performance problems, while too few make queries broad and slow. It explains cardinality, meaning the number of unique values a label can take, and the dual impact of high-cardinality labels such as pod or request IDs: they enlarge the index and storage on the ingestion path, and on the query path they force Loki to scan every matching stream when the label is missing from the selector. The skill is built around cardinality scoring, access-pattern alignment and whether labels are static or dynamic. It is published by Grafana Labs in the skills repository on GitHub and listed on skills.sh.…
Highlights
- Audits and designs Loki label schemas
- Cardinality scoring
- Access-pattern alignment
- Explains streams and query impact
- Diagnoses slow Loki queries
Ratings & Reviews
No ratings yet
Be the first to rate loki-label-analyzer.
People also visit

prometheus-label-strategy
Expert evaluator for Prometheus label strategy on Grafana Cloud

monitoring-expert
Configures monitoring systems, implements structured logging pipelines

prometheus-cardinality-troubleshooter
Diagnostic guide for active Prometheus cardinality problems
loki-label-analyzer FAQ
What does the loki-label-analyzer skill do?
It evaluates a Loki label strategy, giving structured advice on labels, cardinality and query performance.
What is cardinality?
The number of unique values a label can have. High-cardinality labels create many streams and slow queries.
How do I install it?
Run npx skills add https://github.com/grafana/skills --skill loki-label-analyzer, as listed on skills.sh.
When should I use it?
When auditing, designing or improving a Loki label schema, or when Loki queries are slow.
Who makes it?
Grafana Labs, in the skills repository on GitHub.
What are the best loki-label-analyzer alternatives?
Popular alternatives to loki-label-analyzer include prometheus-label-strategy, loki and tumf/grafana-loki-mcp. See all loki-label-analyzer alternatives










