Dev.to
5/9/2026

A Grafana dashboard for Claude Code on Prometheus
Short summary
Developer ported an Azure Application Insights Grafana dashboard to Prometheus/PromQL for Claude Code observability. The MIT-licensed dashboard on Grafana Labs tracks costs, tokens, productivity, and cache performance with organization/user/model filters. Setup requires OTel Collector, Prometheus scrape jobs, and optional custom labels via OTEL_RESOURCE_ATTRIBUTES.
- •Grafana dashboard for Claude Code metrics via Prometheus/PromQL (MIT-licensed, Grafana Labs #25255)
- •Covers costs, tokens, activity, productivity, and cache-hit ratio with built-in filtering
- •Step-by-step setup guide for OTel Collector, Prometheus, and custom resource attributes
Generated with AI, which can make mistakes.
Is this a good recommendation for you?



