Plugins
ApplicationCommunity
Claude Code Stats logo

Claude Code Stats

timurdigital

Get plugin

Reliability

The Reliability tab shows how often Claude Code's API requests fail or are refused. It reads the events Claude Code sends as OpenTelemetry logs, not the metrics the other tabs use, so it needs a Loki data source and an extra Claude Code setting. For details, refer to Send events to Loki.

The Reliability tab with error and refusal totals, errors over time by status code and error and refusal breakdowns

Check errors and refusals at a glance

PanelWhat it shows
API ErrorsAPI requests that failed after Claude Code gave up retrying. Claude Code retries a failed request itself and reports one error at the end.
Error RateAPI errors as a share of all API requests, failed and successful.
Retries ExhaustedRequests that still failed after more than one attempt.
RefusalsResponses the model refused. Refusals aren't API errors, so this is the only place they show up. Refusals the API already retried on another model aren't counted, because the team member never saw them.

When Loki has no Claude Code events for the period, these panels say so instead of showing 0.

Find what fails

PanelWhat it shows
API Errors Over TimeErrors per interval, stacked by HTTP status code. Timeouts and connection failures have no status code and show as No status.
Errors by ModelErrors per model.
Errors by AttemptsErrors by how many attempts Claude Code made, including the first request. By default Claude Code gives up after 11.
Refusals by CategoryRefusals by category: cyber, bio, frontier_llm or reasoning_extraction.
Refusals by ModelRefusals per model.

Claude Code sends the refusal category only when team members set OTEL_LOG_TOOL_DETAILS=1. Without it, a refusal that has a category shows as Categorized (needs OTEL_LOG_TOOL_DETAILS=1), and one without a category shows as No category.

Filters on this tab

Events picks the Loki data source with Claude Code events. Team Member, Model, Repository and any filter labels apply to every panel.

The filters are shared with the other tabs, so their options come from the Claude Code metrics, not from the events. When team members send both, which is the usual setup, the options match. If Claude Code sends only events, the pickers offer only All.

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
Create free account