LOKI LABEL GOVERNANCE / Grafana Labs
Loki label strategy evaluator
Pins Grafana's Loki label skill, which refuses to drop three correlation labels and will not ship an audit without its disclaimer.
“Expert evaluator for Grafana Loki label strategy. …”
01 / THE REASONING
Why this made the selection.
- No selected skills record uses this source path.
- The file refuses to drop service_name, deployment_environment, or job, and it will not ship an audit whose disclaimer is empty.
02 / THE REVIEW RECORD
What we actually inspected.
Source review has boundaries.
A clear record is more useful than a “safe” badge.
Material inspected
- skills/grafana-cloud/loki-label-analyzer/SKILL.md
- README.md
- LICENSE
Our findings
- The skill refuses drop recommendations for service_name, deployment_environment, and job when those keys are present, and it calls bad cardinality on them a value problem.
- An audit with an empty disclaimer is a failed report. Both disclaimer paragraphs must be pasted verbatim, and an action that drops an allowlisted correlation label fails the completion check.
- A demote or rename needs a downstream dependency check covering alerts, dashboards, LBAC, and correlation before cutover.
- Scenario B names a customer-approval guardrail for a debug or trace drop. The billing note says label hygiene alone does not reduce billable ingest bytes.
- user_id, request_id, and trace_id are called never valid as index labels. The file places high-cardinality values such as pod in structured metadata, which it says are not index labels.
- The audit requires a downstream dependency check covering alerts, dashboards, LBAC and correlation before demoting or renaming a label.
Not established by this review
- The resource was not executed and its tools were not called.
- No Alloy pipeline was applied and no Loki query was sent.
- The disclaimer, protected-label, cost-impact, and log-line references were not opened.
- The file's scan-reduction and stream-reduction figures were not measured.
- Not executed: it was not installed or run.
The review applies to the material and revision named here. A newer upstream release can change its behavior.
03 / PUT IT TO WORK
Add a skill to your workflow.
DOCUMENTED COMMAND
claude plugin install grafana-cloud@grafana-skills Copying does not execute this command. It may retrieve a newer version than the reviewed source.
- The README Claude Code section shows claude plugin marketplace add grafana/skills and then claude plugin install grafana-cloud@grafana-skills.
- That command installs the grafana-cloud plugin group. This file is skills/grafana-cloud/loki-label-analyzer/SKILL.md.
- npx skills add grafana/skills is also in the README and can install more than this file. The only --skill example names frontend-session-rca, not this skill.
- This review did not run either install.
Before you start
- Claude Code if the recorded plugin command is used
- A skills host if npx skills add grafana/skills is used instead
- No Loki credential is included in the file; applying a pipeline would be a separate operator step
04 / FOLLOW THE EVIDENCE
The source trail.
Our notes are separate from the original resource.
Check upstream before adopting a new version.
https://github.com/grafana/skills/blob/1ccacf29049fde66637fe01ab93a83a772da323b/skills/grafana-cloud/loki-label-analyzer/SKILL.md
Supports: refusal to drop protected labels and the disclaimer gate
- Repository README ↗Checked
https://github.com/grafana/skills/blob/1ccacf29049fde66637fe01ab93a83a772da323b/README.md
Supports: grafana-cloud plugin install line and Apache-2.0 statement
- Repository LICENSE ↗Checked
https://github.com/grafana/skills/blob/1ccacf29049fde66637fe01ab93a83a772da323b/LICENSE
Supports: Apache License Version 2.0 and Copyright 2026 Grafana Labs
https://raw.githubusercontent.com/grafana/skills/1ccacf29049fde66637fe01ab93a83a772da323b/skills/grafana-cloud/loki-label-analyzer/SKILL.md
Supports: review.findings, bestFor, upstreamDescription