docs: document AI Gateway cost controls - #27643
Conversation
Replace the AIGOV-476 placeholder with an admin guide covering budget concepts, deployment settings, group budgets, user overrides, spend estimation, enforcement, and monitoring.
Docs previewCheck off each page once it's been reviewed. If a page changes in a later push, its checkbox clears automatically so it gets a fresh look. Pages not yet wired into the docs navigation aren't listed here. |
| | `coder_ai_gateway_cost_control_unpriced_token_usage_records_total` | Usage records with no known model price. | | ||
| | `coder_ai_gateway_cost_control_enforcement_duration_seconds` | Duration of budget checks. | | ||
|
|
||
| ## Migrate from Coder Agents Cost Control |
There was a problem hiding this comment.
We should probably add a note on the release notes explaining that AI Governance is replacing Agents Cost Control with a link to this section. Wdyt? Any idea how the release notes are created?
There was a problem hiding this comment.
Should be made known to the release manager as a callout. Usually you'd mark it as a breaking change.
There was a problem hiding this comment.
I am the PM release manager and Marcin is the EM one, so we can help out with this. I will DM you the link to the current release notes to make sure they are accurate
Documentation CheckRe-reviewed at Updates Needed
Minor
Automated review via Coder Agents |
| > | ||
| > - Estimates exclude negotiated discounts, committed-use pricing, and | ||
| > provider-specific billing rules. | ||
| > - Requests to models that are missing from the price table record token usage |
There was a problem hiding this comment.
This section was difficult to write because we are saying there is a problem (unknown prices aren't tracked), but we don't offer a viable solution. Open to suggestions
There was a problem hiding this comment.
Out of scope of this PR but agreed it is a problem.
There was a problem hiding this comment.
Yes, the solution itself is out of scope for this PR. The open to suggestions part was on improving the wording so it reads better.
johnstcn
left a comment
There was a problem hiding this comment.
Approving to unblock. Thanks for working on this Susana!
| | `coder_ai_gateway_cost_control_unpriced_token_usage_records_total` | Usage records with no known model price. | | ||
| | `coder_ai_gateway_cost_control_enforcement_duration_seconds` | Duration of budget checks. | | ||
|
|
||
| ## Migrate from Coder Agents Cost Control |
There was a problem hiding this comment.
Should be made known to the release manager as a callout. Usually you'd mark it as a breaking change.
| > | ||
| > - Estimates exclude negotiated discounts, committed-use pricing, and | ||
| > provider-specific billing rules. | ||
| > - Requests to models that are missing from the price table record token usage |
There was a problem hiding this comment.
Out of scope of this PR but agreed it is a problem.
Description
Adds documentation for AI Governance Cost Control, including how administrators configure budgets, how effective groups are resolved, how enforcement works, and where spend reporting is available.
Changes
Closes AIGOV-476.
Note
Initially generated by Coder Agents, modified and reviewed by @ssncferreira