{"repo":"rockdarko/claude-code-metrics-prometheus","free":true,"listed":false,"github":"https://github.com/rockdarko/claude-code-metrics-prometheus","clone":"git clone https://github.com/rockdarko/claude-code-metrics-prometheus.git","description":"Grafana dashboard for monitoring Claude Code CLI usage on Prometheus-compatible backends (Prometheus, VictoriaMetrics, Mimir, Thanos). Consumes OpenTelemetry metrics emitted via OTLP.","language":null,"stars":16,"topics":["anthropic","claude","claude-code","grafana-dashboard","llm-monitoring","mimir","observability","opentelemetry","prometheus","thanos"],"license":"MIT","category":"analytics","readme_excerpt":"Claude Code Metrics (Prometheus) A Grafana dashboard for monitoring Claude Code CLI usage on Prometheus-compatible backends. Consumes Claude Code's OpenTelemetry metrics (emitted via OTLP) and queries them with PromQL. Compatible with Prometheus, VictoriaMetrics, Mimir, and Thanos. grafana.com: dashboard 25255 Inspired by dashboard 25052 by 1w2w3y, which targets Azure Application Insights via KQL. This is a parallel implementation for the Prometheus stack, with every panel re-queried in PromQL against Anthropic's published OpenTelemetry metric names. Screenshots Top-of-dashboard KPIs and leaderboards. Cost and token usage trends, broken down by model. Per-hour activity, cost decomposition, and cache hit ratio. What's in it Overview : KPIs for sessions, users, total cost, total tokens, commits, pull requests, lines added/removed, active time, tokens by type, and tool decisions. Leaderboards : top users by cost and tokens, top sessions by cost, top repos by cost (off by default, see Optional: per-repo cost attribution), cost by model, edit decisions by language, and sessions by terminal. Cost & Tokens : cost over time (overall and by model) and token usage over time (by type and by model). Activity & Productivity : active time per hour, lines of code per hour, and tool decisions over time. Cost Breakdown : cost by query source, cost by effort, and cache hit ratio. The dashboard uses three header variables for filtering: organization , user , and model . Default time range is th","default_branch":null,"files":null,"tree":[],"storefront":"/r/rockdarko","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/rockdarko/claude-code-metrics-prometheus/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}