Changelog
2.0.2
Changed
- Updated
@grafana/scenesto 9.2.2.
Fixed
- Updated
minimatchandglobin the build and test tooling to patched versions, and dropped theflattedandserialize-javascriptoverrides that are no longer needed.
2.0.1
Fixed
- The plugin no longer bundles its own copy of React's JSX runtime and uses the one Grafana provides, as the Grafana 13 migration guide recommends.
Changed
- The frontend now builds with Rspack 2 instead of webpack, following the create-plugin
rspackmigration.
2.0.0
Breaking changes
- Requires Grafana 13.2.0 or later (was 12.3.0). The plugin now builds on the create-plugin 9 template with React 19 (#56).
Added
- New tabs built from Claude Code events in Loki (needs
OTEL_LOGS_EXPORTER):- Reliability: API errors, exhausted retries and refusals (#35, #80)
- Prompts: prompt volume, slash commands and prompt length (#37, #82)
- Workflow: request latency by model and effort, cache lifetimes, subagents, compaction, skills, MCP connections and hooks (#62, #83)
- Security: permission escalations, auto mode verdicts, rejected tool calls, login failures, plugin installs and managed settings (#63, #84)
- Traces tab (beta), built from traces in Tempo: interactions, model requests with time to first token, and a trace waterfall (#38, #87)
- Setup Guide on the configuration page picks the destination and features, then builds the matching environment variables, including events and traces (#109)
- Filters:
- Overview:
- Cost and tokens:
- Tools tab:
- Productivity tab:
- Attribution panels say why they're empty, for example "No subagent ran in this period" (#58, #88)
- Example Grafana alert rules for cost spikes, API error rate, refusals and
bypassPermissionssessions underexamples/alerting/(#40, #79, #85) - Plugin documentation, shown as the Documentation tab on the catalog page, including which Claude Code settings each feature needs (#39, #65, #74)
Changed
- Visual polish: neutral colors, bars per interval on Over Time charts, and panel descriptions (#59, #75)
- Session counts use the
session.countmetric and leave out the localclaude agentsdashboard process (#32, #43) - The default time range is the last 7 days (#57)
Fixed
- Usage without
user_email(API key, Bedrock, Vertex and Foundry users) is attributed toenduser_idoruser_idinstead of being dropped (#61, #70) - The Cache Read stat was always empty (#57)
- The Model picker is hidden on tabs whose metrics have no model label (#57)
- Over Time charts no longer drop counter jumps between bars, and use a 1m minimum step (#76, #77)
- Bar gauges start at zero, so the smallest bar or a single bar is no longer drawn empty (#91)
- The Traces tab no longer shows an error and sends failing Tempo queries before a trace is picked (#93)
- Event tabs no longer say telemetry is missing when there is simply nothing to show: counts show 0 and breakdowns say what didn't happen, such as "No refusals in this period" (#94)
- The Traces tables show their key columns with readable names, and a Model Requests trace ID opens the trace (#92)
- Counts show whole numbers, costs show cents, and the Cost Breakdown table has Team Member, Model and Cost columns without the query time (#95)
- Narrow panels stay readable: bar gauge text no longer grows to heading size, MCP tool labels lead with the tool, leaderboard headers and pie legends fit, and the Surface hint is no longer cut off (#96)
- The vs Previous Period row is hidden when there is no previous period, and the Team Leaderboard is only as tall as its members need (#96)
- The catalog listing has current screenshots, description and keywords, and the root README points to the docs (#97)
1.1.0
Added
- Metric Format setting — toggle between Prometheus/OTEL Collector and Direct OTLP metric naming conventions in the Configuration page
- End-to-end tests for Metric Format selector
Fixed
- Stat panels (total cost, tokens, sessions, active users) no longer show "No Data" between sessions — instant counter queries now use
increase([$__range]) - Plugin loading error ("t() was called before i18n was initialized") resolved by initializing
@grafana/i18nbefore scenes renders toolAcceptanceRatequery guarded against division by zero
Changed
- Updated
@grafana/scenesfrom 6.x to 7.x
1.0.2
Changed
- Use
user_emaillabel instead ofuser_account_uuidfor team member identification - Added
OTEL_EXPORTER_OTLP_METRICS_TEMPORALITY_PREFERENCE=cumulativeto setup guide (required for Grafana Cloud) - Improved browser tab titles for better navigation
- Simplified configuration page (removed Team Members tab, users are now identified by email automatically)
Added
- End-to-end tests with Playwright
.nvmrcfile for consistent Node.js version
CI
- Bump actions/checkout from 5 to 6
- Bump actions/setup-node from 6.0.0 to 6.1.0
- Bump actions/upload-artifact from 5 to 6
- Bump actions/download-artifact from 6 to 7
- Bump grafana/plugin-actions/bundle-size from 1.0.2 to 1.1.0
1.0.0
Initial release of Claude Stats Grafana app plugin.
Features
- Overview dashboard with cost, token, and session metrics
- Cost analytics with breakdown by model and team member
- Token usage analysis with input/output/cache breakdown
- Tool usage tracking with accept/reject decisions
- Productivity metrics (lines of code, commits, PRs)
- Setup wizard for configuring Claude Code OpenTelemetry export
- Team member filtering across all dashboards
- Auto-discovery of Prometheus data sources