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

Advisor: A /advisor Slash Command for Claude Code That Runs Opus + Parallel Sonnet Runners
A /advisor command for Claude Code runs Opus as a strategist coordinating multiple Sonnet runners that read files in parallel. Found 6 real bugs including a bidi-character trojan source gap.

ApexClaw: Open-Source Telegram AI Agent with 85+ Tools for Web Automation, Voice, and Email
ApexClaw is an open-source Telegram AI agent written in Go that provides 85+ built-in tools including web browsing with headless Chrome, voice note processing, Gmail integration, and shell script execution. It's self-hosted and uses the z.ai engine for reasoning.

7-Agent System in Claude Code Replaces Sprint Ceremonies for Solo Devs
A PM-turned-solo-dev built a 7-agent team inside Claude Code that handles QA, PR review, security, architecture, and backlog grooming — all triggered by a single /review command.

Open Brain: Open-source MCP server adds persistent memory with auto-graph and semantic search to Claude
Open Brain is an open-source MCP server that gives Claude persistent memory across sessions with automatic entity extraction, semantic deduplication, and auto-graphing of connections between thoughts. It uses Supabase with pgvector and Deno Edge Functions, is self-hostable, and includes 16 MCP tools for graph traversal, entity browsing, and weekly review synthesis.