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

OpenClaw CoreBrain Plugin: Persistent Memory for AI Coding Agents
A new plugin called CoreBrain addresses OpenClaw's memory issues by storing information outside the context window in a knowledge graph and auto-injecting it before every query, eliminating the need for tool calls and optional memory invocation.

TinySearch v0.2.0: Lightweight Web Search for Local LLMs Now Backed by SearXNG
TinySearch v0.2.0 switches from DuckDuckGo to SearXNG as search backend. It searches the web, crawls pages, and provides compact context (8k tokens) for local LLMs like Qwen3.5-9B.

Implementing AI Checks with Continue for Source-Controlled PR Reviews
Continue integrates AI checks directly into your pull request workflow by using markdown files as source-controlled checks, visible through GitHub status checks.

Open Source Chrome Extension Development Skills Package Released
Developer quangpl has packaged four years of Chrome extension development experience into eight AI agent skills covering scaffolding with WXT, manifest generation, security auditing, testing, asset generation, publishing, and MV2 to MV3 migration.