Skip to content
Kitbay

loki-label-analyzer

Apache-2.0Updated on Nov 10, 2026307GitHub stars

A Grafana Labs skill for reviewing how logs are labelled in Grafana Loki.

What the skill teaches

A Grafana Labs skill for reviewing how logs are labelled in Grafana Loki. The agent scores each label by cardinality, checks whether labels match the way people actually query the logs, separates fixed values from changing ones, and looks for naming that differs between sources. It writes the result as an audit with a disclaimer, a check of dashboards and alerts that depend on current labels, an estimated effect on performance and cost, a recommended label set and migration notes. It includes suggested labels for Kubernetes pods, hosts and journal logs, and explains when to use structured metadata or keep values in the log line instead.

Capabilities

  • Score Loki labels by cardinality
  • Compare labels with query patterns
  • Check dashboards and alerts that depend on labels
  • Estimate the cost impact of label changes
  • Recommend a label set with migration notes