feat(grafana): add Claude Code cost-efficiency dashboard#87
Merged
Conversation
Add a Grafana dashboard (20 panels, 5 rows) provisioned via Grafana HTTP API, all driven by Loki LogQL queries from OTEL telemetry. Panels cover cost overview, token efficiency, tool usage, session analysis, and performance. - Add dashboard JSON at dot_config/grafana/dashboards/claude-code-cost.json - Add `just grr-push` target to deploy dashboard via Grafana API - Add OTEL_METRICS_INCLUDE_SESSION_ID/VERSION env vars for future metrics - Add grafana_sa_token to chezmoi data (read from 1Password) - Export GRAFANA_SA_TOKEN in zshrc for dashboard provisioning Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
just grr-pushcommand to deploy dashboard to Grafana Cloud via HTTP APIgrafana_sa_tokento chezmoi data (1Password) and exportGRAFANA_SA_TOKEN+ OTEL metrics env vars in zshrcTest plan
just testpasses (lint + format checks)chezmoi applydeploys all files correctlyjust grr-pushsuccessfully deploys dashboard to Grafana Cloud🤖 Generated with Claude Code