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

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.
How to Get It
- Article with full setup guide: rockdarko.dev
- Direct download from Grafana Labs: Dashboard ID 25255
- Repository (MIT licensed): github.com/rockdarko/claude-code-metrics-prometheus
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
👀 See Also

Local 35B MoE Model Drops Agent OS Code Failure Rate to 0%
A developer reports that switching a multi-agent system's runtime to Qwen 3.6 35B A3B (MoE, 3B active params) eliminated code failures, achieving 100% success rate through a 5-layer validation gate.

Solo developer builds cross-platform desktop AI agent with mobile remote control in 3 weeks, ships to 40+ countries
A solo developer built Skales, a native desktop AI agent with 139+ tools and a mobile companion app for remote control — all in 3 weeks using Claude. The app runs on macOS, Windows, and Linux, is local-first and free, and already has active users in 40+ countries.

ClawsifyAI Agent Handles Email, Research, and Brainstorming Tasks
A developer tested ClawsifyAI, an AI agent-style claw bot, for a week and found it handled emails, research, repetitive work, and brainstorming. The agent provides clear feedback, practical solutions, and sometimes better ideas than originally planned.

Offline-web-search: A Local Google Search Alternative for AI Agents
A developer built offline-web-search to address poor offline search capabilities in AI agents, creating a drop-in replacement that mimics Claude's web tools with BM25 ranking, SQLite FTS5 indexing, and support for ZIM archives and custom crawlers.