Team usage analytics for Claude Code, powered by OpenTelemetry.
Claude Code Stats turns the OpenTelemetry metrics that Claude Code exports into a ready-made Grafana app. See what your team spends, which models and features drive it, and what Claude Code produces, without building dashboards yourself.
Features
- Overview: Total cost, tokens, sessions and active users, efficiency ratios such as cache hit rate and cost per session, a team leaderboard, trends and an environment breakdown.
- Costs: Spend by model and team member, and what drives it: subagents, skills, plugins, MCP servers and tools, fast mode and effort level.
- Tokens: Token volume by type, including prompt cache reads and writes, by model and team member.
- Tools: How often team members accept the file edits Claude Code proposes, and how every tool performs: calls, failure rate, latency and error types.
- Productivity: Lines of code, commits, pull requests and active time.
- Prompts: Prompt volume, prompts per session, the most-used slash commands and prompt length, from the events Claude Code sends to Loki.
- Workflow: Model latency, subagent runs, context compaction, skill activations, MCP server connections and hook timing, from the events Claude Code sends to Loki.
- Reliability: API errors by status code, model and retry attempts, exhausted retries and refusals by category, from the events Claude Code sends to Loki.
- Security: Permission escalations, auto mode classifier verdicts, rejected tool calls, login failures, unofficial plugin installs and managed settings, for administrators.
- Traces (beta): One prompt end to end: model requests with time to first token, tool calls, permission waits and tool runs, from traces in Tempo.
Filter the metrics and events tabs by team member, team (identity-provider group), repository, your own labels such as cost center, and time range, and the cost and token views by model. The Traces tab filters by team member and time range.
Requirements
- Grafana 13.2.0 or later
- A Prometheus-compatible data source. Grafana Cloud includes one by default.
- Claude Code with telemetry enabled, exporting metrics to Grafana Cloud or through an OpenTelemetry Collector to Prometheus
- For the Prompts, Workflow, Reliability and Security tabs and tool performance on the Tools tab: a Loki data source and Claude Code events (
OTEL_LOGS_EXPORTER=otlp) - For the Traces tab: a Tempo data source and Claude Code traces (
CLAUDE_CODE_ENHANCED_TELEMETRY_BETA=1andOTEL_TRACES_EXPORTER=otlp)
Get started
Setup, configuration and a guide to each tab are on the Documentation tab of this plugin's page.
For every Claude Code telemetry setting, refer to Monitoring usage in the Claude Code docs.
Documentation
Grafana Cloud
Connect any plugin in Grafana Cloud.
- 150+ data source integrations
- Grafana Assistant - AI that correlates your data, builds queries, and answers questions
- 10k Prometheus metrics + 50 GB logs, traces, and profiles on the free tier
- ...and more
Insights
- Adoption
Running on 816 active Grafana instances.
- Activity
Last updated 20 Nov 2026.
3 releases in the past year.
- Version
- 2.0.2
- Dependencies
- Grafana >=13.2.0
- Developer
- timurdigital
Grafana Cloud
Connect any plugin in Grafana Cloud.
- 150+ data source integrations
- Grafana Assistant - AI that correlates your data, builds queries, and answers questions
- 10k Prometheus metrics + 50 GB logs, traces, and profiles on the free tier
- ...and more