Open Source Grafana Dashboard Tracks Claude Code Costs and Usage via OpenTelemetry

✍️ OpenClawRadar📅 Published: May 16, 2026🔗 Source
Open Source Grafana Dashboard Tracks Claude Code Costs and Usage via OpenTelemetry
Ad

A Grafana dashboard for tracking Claude Code costs and usage is now available open source. Built by an SRE who noticed that Claude Code's OpenTelemetry (OTel) metrics capability landed quietly, the dashboard pulls OTel metrics into any Prometheus-compatible backend — including Prometheus, VictoriaMetrics, Mimir, or Thanos.

What It Shows

  • Cost broken down by model, project, and user
  • Token usage over time
  • Cache hit ratio — the single biggest lever on bill predictability
  • Active time, lines of code touched, commits, and PRs Claude opened
  • Edit-decision breakdowns (accept vs. reject)

Custom Labels for Grouping

Use OTEL_RESOURCE_ATTRIBUTES to add custom labels and group data by team or project. This makes it easy to attribute costs to specific teams or initiatives.

Ad

How to Get It

Inspired by the existing Azure Application Insights dashboard for Claude Code, this implementation targets teams running open-source observability stacks. The dashboard is MIT licensed and ready to import into your Grafana instance.

📖 Read the full source: r/ClaudeAI

Ad

👀 See Also