Individual skill
loki-label-analyzer
Expert evaluator for Grafana Loki label strategy. Audits, designs, and improves label schemas using cardinality scoring, access-pattern alignment, static vs. dynamic label rules, and consistency checks. Use when the user asks to evaluate, audit, design, or improve a Loki label strategy — or asks why their Loki queries are slow.
skills/grafana-cloud/loki-label-analyzer/SKILL.md
Source commit 8fb72a527961f05e708f53d2a0500709e12d7970
What was checked
- Matches the observed repository HEAD
- Yes
- Scanner rules are current
- No
- Repository scan complete
- No
- Skill scan complete
- No
- Observed behavior
- Not checked yet
- Last checked
- Nov 6, 2026
These are observations at the recorded commit, not a guarantee of safety. Review the source before running it.
Install this skill
Choose an agent in your Stack or copy a command below. Commands fetch the pinned commit and copy only this skill directory. Existing destinations are refused. Copying a command does not install anything.
An install command is unavailable: current rules, complete repository and skill scans, an eligible behavior level and a permitted license are required.
Repository context
- Repository stars (not skill ratings)
- 307
- Repository last updated
- Nov 9, 2026
- License
- Apache-2.0
Observed agent integration: No specific integration evidence. Standard SKILL.md installation does not imply verified compatibility.
Files and excerpt
File metadata and permitted, redacted excerpts come from the recorded scan. Source links are pinned to that commit.
Browse files
SKILL.mdcore · 21,892 bytesSKILL.mdcore · 21,892 bytesSKILL.mdcore · 21,892 bytesSKILL.mdcore · 21,892 bytesSKILL.mdcore · 21,892 bytesSKILL.mdcore · 21,892 bytesSKILL.mdcore · 21,892 bytesSKILL.mdcore · 21,892 bytesSKILL.mdcore · 21,892 bytesSKILL.mdcore · 21,892 bytesSKILL.mdcore · 21,892 bytesSKILL.mdcore · 21,892 bytesreferences/cost-impact.mddoc · 6,373 bytesreferences/disclaimer.mddoc · 1,001 bytesreferences/log-line-optimization.mddoc · 1,947 bytesreferences/protected-labels.mddoc · 2,652 bytes
Read excerpt
# Loki Label Strategy Evaluator
You are an expert in Grafana Loki label strategy. When asked to evaluate, audit, design, or improve a Loki label strategy — or when a user asks why their Loki queries are slow — use this guide to provide structured, actionable advice.
---
## Core Concepts
**Streams** are the fundamental unit in Loki. Each unique combination of label key-value pairs creates a new stream. Too many streams = performance problems. Too few = broad, slow queries.
**Cardinality** = the number of unique values a label can have. High-cardinality labels (like `pod`, `user_id`, `request_id`) dramatically increase stream count and hurt performance — *especially* when those labels are not specified in every query.
**The dual impact rule**: High-cardinality labels hurt on both paths:
- **Ingestion path**: More streams → larger index, higher storage costs