Claude Code
Claude Code usage analytics: tracks cost, token consumption, API requests, tool usage, sessions, active coding time, lines of code, commits, code edit acceptance rate, per-user breakdown, and error details. Data sourced from Application Insights via OpenTelemetry.
Claude Code
Monitoring dashboard for Claude Code usage and performance via Application Insights OpenTelemetry data. Tracks cost, token consumption, API requests, tool usage, sessions, active coding time, lines of code, commits, code edit acceptance rate, per-user breakdown, and error details.
Screenshots

Issues and feedback
https://github.com/1w2w3y/grafana-dashboards/issues
Features
- Summary KPIs
- Total Cost, Total Sessions, User Prompts, API Requests, API Errors, Active Time
- Cost & Token Trends
- Daily Cost by Model
- Daily Token Usage by Type
- Model Usage Breakdown
- Token Usage by Model
- Cost by Model
- API Requests by Model
- Tool Usage Analytics
- Tool Usage (Top Tools)
- Daily Tool Usage (Stacked)
- Productivity Metrics
- Lines of Code (Added vs Removed)
- Daily Commits
- Daily User Prompts
- Session & Activity
- Daily Sessions
- Active Time per Day
- Code Edit Accept Rate
- Per-User Metrics
- User Summary
- Per-User Cost by Model
- Errors & Reliability
- API Errors Over Time
- Error Details
How it works
- Grafana queries Application Insights via the Azure Monitor data source using Log Analytics (KQL) queries against OpenTelemetry data.
- Variables:
am_ds— Azure Monitor data sourcesub— Azure subscriptionrg— Resource group (resolved via Azure Resource Graph formicrosoft.insights/components)res— Application Insights resource
- Default time range is 7 days.
Requirements
- Grafana 11.6+ with the Azure Monitor data source configured with access to the subscription containing your Application Insights resource.
- Claude Code telemetry data flowing into Application Insights via OpenTelemetry.
Change history
- 3/23/2026 Initial version
Data source config
Collector config:
Upload an updated version of an exported dashboard.json file from Grafana
| Revision | Description | Created | |
|---|---|---|---|
| Download |