Repository navigation
feat(k8s): alert on the daily Claude spend - #4246
Merged
Merged
Conversation
Owner
Author
|
Test record of the author.
A person decides: whether 15 USD and 25 USD are the right thresholds. The issue asks to set them again with the data of one month. |
dan-petty
marked this pull request as ready for review
November 9, 2026 17:04
dan-petty
pushed a commit
that referenced
this pull request
Nov 9, 2026
🤖 I have created a release *beep* *boop* --- ## [0.102.0](v0.101.1...v0.102.0) (2026-11-09) ### Features * **k8s:** alert on the daily Claude spend ([#4246](#4246)) ([cc3b078](cc3b078)) ### Bug Fixes * **k8s:** name the reference models in the ConfigMap template ([#4251](#4251)) ([750cf78](750cf78)) --- This PR was generated with [Release Please](https://github.com/googleapis/release-please). See [documentation](https://github.com/googleapis/release-please#release-please). Co-authored-by: dan-petty-release[bot] <346998822+dan-petty-release[bot]@users.noreply.github.com>
dan-petty
pushed a commit
that referenced
this pull request
Nov 9, 2026
🤖 I have created a release *beep* *boop* --- ## [0.102.0](v0.101.1...v0.102.0) (2026-11-09) ### Features * **k8s:** alert on the daily Claude spend ([#4246](#4246)) ([cc3b078](cc3b078)) ### Bug Fixes * **k8s:** name the reference models in the ConfigMap template ([#4251](#4251)) ([750cf78](750cf78)) --- This PR was generated with [Release Please](https://github.com/googleapis/release-please). See [documentation](https://github.com/googleapis/release-please#release-please). Co-authored-by: dan-petty-release[bot] <346998822+dan-petty-release[bot]@users.noreply.github.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Add the rule group ai-spend to the Prometheus rules. ClaudeSpendDailyHigh fires when claude-sonnet-5-5 costs more than 15 USD in 24 hours. HostedSpendDailyHigh fires when all hosted models cost more than 25 USD in 24 hours. Both read devops_cli_ai_spend_usd_total, which prices a hosted call since #3665. A failed stage burst spent about 58 USD in one day, and a normal day is under 6 USD. The README lists both alerts with the first step: read the cost page of the AI spend dashboard, find the caller by the end_user label, and stop the job.
Closes #4222
Change:
openspec/changes/archive/2026-11-09-4222-alert-on-the-daily-claude-spend/