{"repo":"centminmod/claude-code-opentelemetry-setup","free":true,"listed":false,"github":"https://github.com/centminmod/claude-code-opentelemetry-setup","clone":"git clone https://github.com/centminmod/claude-code-opentelemetry-setup.git","description":null,"language":null,"stars":125,"topics":["ai-metrics","claude-code","claudecode","grafana","grafana-dashboard","loki","opentelemetry","prometheus","prometheus-metrics","claude-code-monitoring"],"license":null,"category":"analytics","readme_excerpt":"Claude Code OpenTelemetry Monitoring Monitor your Claude Code usage with a complete observability stack: OpenTelemetry Collector, Prometheus, Loki, and Grafana. Track costs, token usage, cache efficiency, active time, and code changes in real-time with pre-built dashboards. Watch and check back for updates to this repo for step by step instructions for setting this up. Still fine-tuning the charts and panels. An accompanying Claude Code usage metrics MCP server allows Claude Code access to it's own usage metrics (see below example along with example screenshots). Based on Official Claude Code Documentation: Claude Code supports OpenTelemtry as described in Anthropic's official monitoring documentation. --- Grafana Dashboards Claude Code Usage Metrics MCP Server Claude Code Usage Metrics MCP Server Demo This section showcases the actual JSON responses from all 14 MCP tools, demonstrating the format and data you can expect. 1. get current cost Returns today's total USD cost from Prometheus. 2. get token usage Returns token breakdown by type (input, output, cacheCreation, cacheRead). 3. get cache efficiency Returns cache hit rate percentage. 4. get available metrics Returns comprehensive reference of all Prometheus metrics and Loki log events (truncated for brevity). 5. get recent prompts Returns recent user prompt submissions (requires OTEL LOG USER PROMPTS=1 ). 6. get tool results Returns recent tool execution logs with performance metrics (truncated for brevity). 7. query pro","default_branch":null,"files":null,"tree":[],"storefront":"/r/centminmod","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/centminmod/claude-code-opentelemetry-setup/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."}