Skip to content

feat(benchmark): add local Grafana dashboard - #142

Open
prdai wants to merge 6 commits into
mainfrom
feat/benchmark-dashboard
Open

prdai wants to merge 6 commits into
mainfrom
feat/benchmark-dashboard

Conversation

@prdai

@prdai prdai commented Nov 29, 2026 •

Copy link
Copy Markdown
Member

what changed

  • benchmark/grafana/: local Grafana + Postgres stack with a provisioned dashboard that mirrors every CSV figure (scaling, cost, per-tree phases, selected sizes, cost by service, runs table). Includes the image renderer pinned to 3.12.9; v4/v5 crash on this setup with chrome_crashpad_handler: --database is required.
  • benchmark/src/grafana_load.py: loads results/phase-timings.csv into Postgres directly via psycopg.
  • benchmark/src/grafana_site.py: renders each Grafana panel to PNG and writes a single self-contained results/site/index.html.
  • benchmark/wrangler.jsonc + make site-deploy: publish that directory as a Cloudflare Worker with static assets.
  • Make targets: dashboard-up / dashboard-load / dashboard-down for local Grafana, and site / site-deploy for the Grafana-rendered static page.
  • Documented both in benchmark/README.md and docs/running.md.

why

There is no Grafana plugin that emits a self-contained static HTML; the official image renderer emits panel PNGs, and snapshots/public dashboards still need a running Grafana. So the deployed static page is built from renderer output. Grafana is the local interactive view; the static page is the deployed artifact.

verification

  • make -C benchmark dashboard-up starts Grafana + Postgres and loads the rows; dashboard-load re-runs idempotently.
  • make -C benchmark site renders the panels and writes a ~677 KB index.html.
  • make -C benchmark site-deploy deploys it. Live at https://sce-benchmark.secure-rads-research-site.workers.dev (HTTP 200, 693,180 bytes).
  • uvx ruff==0.17.4 check . and format --check . pass under benchmark/.

Not verified: custom domain / DNS routing. Deploy requires CLOUDFLARE_ACCOUNT_ID in the root .env.

screenshots

Local Grafana dashboard (the deployed artifact is the static page built from the same panel renders):

SCE Benchmark dashboard

Co-authored-by: Codex <codex@openai.com>
@prdai
prdai marked this pull request as ready for review November 29, 2026 02:19
prdai and others added 5 commits November 29, 2026 07:53
Co-authored-by: Codex <codex@openai.com>
Co-authored-by: Codex <codex@openai.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant