Skip to content

add Grafana panel for budget_remaining metric#89

Merged
cchinchilla-dev merged 1 commit intomainfrom
fix/grafana-budget-panel-88
Apr 3, 2026
Merged

add Grafana panel for budget_remaining metric#89
cchinchilla-dev merged 1 commit intomainfrom
fix/grafana-budget-panel-88

Conversation

@cchinchilla-dev
Copy link
Copy Markdown
Owner

Summary

  • Add timeseries panel "Budget Remaining" in the Cost Analysis section of the Grafana dashboard
  • Queries agentloom_budget_remaining_usd{workflow=~"$workflow"}, showing remaining budget per workflow over time
  • Follows the same style as "Cumulative Cost" (line chart, currencyUSD unit, fill opacity)
  • Tested against live Prometheus data from 3 workflows (chain-of-thought, content-moderation, customer-support-router)

Test plan

  • Valid JSON (python3 -m json.tool)
  • Dashboard imported to Grafana and verified with live data from OpenAI workflows
  • Panel renders correctly with per-workflow budget lines

Closes #88

Copilot AI review requested due to automatic review settings April 3, 2026 17:43
@github-actions github-actions bot added the infrastructure Deployment, Docker, K8s, Helm, Terraform label Apr 3, 2026
@codecov
Copy link
Copy Markdown

codecov bot commented Apr 3, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.

📢 Thoughts on this report? Let us know!

Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Adds a new Grafana visualization for the agentloom_budget_remaining_usd metric to make remaining workflow budget visible on the main AgentLoom dashboard.

Changes:

  • Introduces a new “Budget Remaining” panel querying agentloom_budget_remaining_usd{workflow=~"$workflow"}.
  • Positions the new panel within the dashboard layout and shifts subsequent panel gridPos.y values to avoid overlap.

@cchinchilla-dev cchinchilla-dev merged commit 6c0d04b into main Apr 3, 2026
12 checks passed
@cchinchilla-dev cchinchilla-dev deleted the fix/grafana-budget-panel-88 branch April 3, 2026 17:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

infrastructure Deployment, Docker, K8s, Helm, Terraform

Projects

None yet

Development

Successfully merging this pull request may close these issues.

add Grafana panel for budget_remaining metric

2 participants