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

Crag: Open-source tool generates unified AI agent rules from project configs
Crag is an open-source compiler that analyzes project configurations and generates a single governance.md file, then compiles it into multiple AI agent rule files to prevent configuration drift across tools like Claude Code, Cursor, and Copilot.
GLiGuard: Open-Source 300M Parameter Safety Moderation Model Claims 16x Speedup Over LLM Guardrails
Fastino Labs releases GLiGuard, a 300M parameter encoder-based model that performs multiple safety tasks in a single pass, matching or exceeding models 23–90x larger while running up to 16x faster.

oMLX introduces SSD KV caching for Apple Silicon, reducing OpenClaw response times from 30-90 seconds to 5 seconds
oMLX is a new backend that persists KV cache blocks to SSD in safetensors format, preventing cache invalidation when context shifts. This reduces OpenClaw response times from 30-90 seconds down to 5 seconds on subsequent turns.

Local Trello-style project manager for OpenClaw agents using markdown files
A developer built a local Trello board for managing projects with OpenClaw agents, using Node.js + Express for the API, React + react-trello for the UI, and markdown files with YAML frontmatter as the data layer. The system runs on the OpenClaw machine and is accessed locally, with agents reading/writing card files directly on the filesystem.