Skip to content

docs: add Track Spend by Tag page for cost-allocation tags - #149

Merged
micheleRP merged 8 commits into
redpanda-data:mainfrom
alenkacz:docs/cost-allocation-tags
Jul 24, 2026
Merged

docs: add Track Spend by Tag page for cost-allocation tags#149
micheleRP merged 8 commits into
redpanda-data:mainfrom
alenkacz:docs/cost-allocation-tags

Conversation

@alenkacz

Copy link
Copy Markdown
Contributor

What

Documents the cost-allocation tags feature: the key/value tags on an agent can now group and filter LLM spend in Cost & Usage, so cost can be attributed to a department, team, or environment for chargeback.

  • New page control:cost-allocation-tags.adoc (Track Spend by Tag, GA), covering:
    • How attribution works — point-in-time and immutable, ~15s propagation, the Untagged bucket.
    • Tagging agents (department/team/env), the no-secrets/PII rule, and the identifier-safe key rule for filtering.
    • The Group by Tag and tag-filter UI, and the CSV export.
    • The SpendingService API surface: BREAKDOWN_DIMENSION_TAG + tag_key, AIP-160 tags.<key> filters, and the new GetSpendingTagKeys RPC, with a cURL example.
    • Limits and troubleshooting.
  • budgets.adoc: add BREAKDOWN_DIMENSION_TAG to the breakdown-dimension list with a cross-link.
  • nav.adoc: add the page under Control & Govern.

Provenance

Written from the cloudv2 feat/aigw-cost-allocation-tags implementation (proto spending_service.proto/spending_event.proto/agent.proto, the aigw spending pipeline, and the adp-ui Cost & Usage tab). Verified against source; both a factual reviewer (against cloudv2 source) and a style reviewer (against the docs-site style guide) scored it 10/10. npm run build passes clean.

Still to confirm before merge

  • Live verification + screenshots — API examples are code-verified but not yet exercised against a live cluster on ai.redpanda.com (see the author comment in the page).
  • GA vs feature flag — the feature ships behind COST_ALLOCATION_TAGS in cloudv2; confirm that flag is enabled/removed for the target release before publishing as GA.
  • Reviewer assignment must be added by someone with write access (opened from a read-only fork).

🤖 Generated with Claude Code

Document the cost-allocation tags feature: agents' key/value tags can now
group and filter LLM spend in Cost & Usage for chargeback by department,
team, or environment.

- New page control:cost-allocation-tags.adoc (GA) covering how attribution
  works (point-in-time, ~15s propagation, Untagged bucket), tagging agents,
  the Group by Tag and tag-filter UI, the SpendingService API surface
  (BREAKDOWN_DIMENSION_TAG, tag_key, GetSpendingTagKeys), limits, and
  troubleshooting.
- Add BREAKDOWN_DIMENSION_TAG to the breakdown-dimension list in budgets.adoc
  with a cross-link.
- Add the page to the Control & Govern nav.

Co-Authored-By: Claude Opus 4.8 (1M context) <[email protected]>
@alenkacz
alenkacz requested a review from a team as a code owner July 22, 2026 05:19
@netlify

netlify Bot commented Jul 22, 2026

Copy link
Copy Markdown

👷 Deploy request for redpanda-agentic-data-plane pending review.

Visit the deploys page to approve it

Name Link
🔨 Latest commit bf471b4

alenkacz and others added 4 commits July 22, 2026 08:00
Drop the internal poll-cycle mechanism and the specific ~15s interval from
the propagation behavior; state only the user-observable fact that tag
changes take a short time to take effect.

Co-Authored-By: Claude Opus 4.8 (1M context) <[email protected]>
The AIP-160 identifier-safe key limitation on the tag filter is being
removed, so document grouping and filtering as working for any tag key.
Removes the restriction from the tagging guidance, the Group by Tag and
tag-filter descriptions, the tag_key field notes, the filter section, the
limits table, and troubleshooting.

Co-Authored-By: Claude Opus 4.8 (1M context) <[email protected]>
Verified the tag spending API against the ign integration cluster: the
JSON response uses camelCase (totalCostMicrocents, totalRequests), while
request fields are snake_case. Correct the cURL response description,
document the request/response casing explicitly, and update the source
provenance to note live verification. Remove the stale not-yet-verified
caveat comment.

Co-Authored-By: Claude Opus 4.8 (1M context) <[email protected]>
GetSpendingTagKeys is an internal helper the UI uses to populate its tag-key
picker; an API consumer already knows the tag keys they set on their agents,
so it is not useful in end-user docs. Remove the section and the helper-method
mention from the API intro.

Co-Authored-By: Claude Opus 4.8 (1M context) <[email protected]>
Comment thread modules/control/pages/cost-allocation-tags.adoc Outdated
Comment thread modules/control/pages/cost-allocation-tags.adoc Outdated
Comment thread modules/control/pages/cost-allocation-tags.adoc Outdated
@micheleRP
micheleRP merged commit ead1c75 into redpanda-data:main Jul 24, 2026
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.

2 participants