Skip to content

[NO-JIRA] Add daily spend by machine panel and remove Codex mentions from llm-spend - #1066

Merged
johnnymo87 merged 1 commit into
mainfrom
grafana-daily-machine-spend
Dec 2, 2026
Merged

johnnymo87 merged 1 commit into
mainfrom
grafana-daily-machine-spend

Conversation

@johnnymo87

Copy link
Copy Markdown
Owner

Description

  • Add Daily spend by machine (EST / UTC-5 days — notional + cash) stacked bar chart at the top of llm-spend.json (right below Overview, y=5, shifting panels below down by +8):
    • Queries fleet_program_hourly grouped by EST (UTC-5) day and host (cloudbox, devbox, mac), pivoted via groupingToMatrix with emptyValue: "zero", stacking: "normal", and palette-classic-by-name for stable host colors.
    • Explicitly labels both the day boundary (EST / UTC-5, matching session-tags ET reports in winter; 1h shift in EDT) and the price basis (combined notional Max list-price + cash/commitment Vertex/agy/enterprise; filter by Backend to isolate either).
  • Remove all Codex UI mentions from llm-spend.json (Overview stat tile & color override, Program Breakdown codex_usd column & override, and panel titles on panels 3, 4, and 6). Any future backend = 'codex' rows are folded into Max notional in SQL rather than dropped (currently 0 codex rows in production ledger.db).

Verification

  • nix build --no-link .#checks.aarch64-linux.cloudbox-grafana-dashboards (31 self-tests + 5 dashboards) — pass
  • users/dev/test-pipefail-inversion.sh & users/dev/test-frontdoor-opacity.sh — pass
  • Reconciled 2026-11-30 ET against session-tags on cloudbox ($569.81 ledger vs $546.60 oc-tags export-hourly; diff from agy / cfp ledger accounting) and devbox exported telemetry ($677.64 exact match)

References

@johnnymo87
johnnymo87 marked this pull request as ready for review December 2, 2026 02:45
@johnnymo87
johnnymo87 enabled auto-merge (squash) December 2, 2026 02:45
@johnnymo87
johnnymo87 merged commit e8b3e9c into main Dec 2, 2026
2 checks passed
@johnnymo87
johnnymo87 deleted the grafana-daily-machine-spend branch December 2, 2026 02:51
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