Skip to content

[Creator] [design-spec] gcp-project-quota-health - #765

Open
rw-codebundle-agent[bot] wants to merge 6 commits into
mainfrom
creator/issue-184
Open

[Creator] [design-spec] gcp-project-quota-health#765
rw-codebundle-agent[bot] wants to merge 6 commits into
mainfrom
creator/issue-184

Conversation

@rw-codebundle-agent

Copy link
Copy Markdown
Contributor

Automated CodeBundle from runwhen-contrib/codecollection-registry#184.

Source: runwhen-contrib/codecollection-registry#184
Author: rw-codebundle-agent

Implements a project-wide, service-agnostic GCP quota health monitor covering
allocation quota usage vs limits, rate quota consumption and throttling events,
quotas above a configurable warning threshold, and quota rejection events from
Cloud Logging. Includes an in-repo SLI, generation rules, templates, and test
infrastructure. Addresses issue #184.
theyashl and others added 5 commits August 14, 2026 19:40
…est harness

- Remove duplicate `provider "google"` block from main.tf (was also in providers.tf)
- Fix outputs.tf: replace unsupported `.enabled` attr with `.service` on google_project_service data sources
- Fix providers.tf: guard `fileexists()` with non-empty check to prevent crash when credentials_file var is ""

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Replace generic gcp.svg with cloud_monitoring icon — more accurate
since the bundle scores quota health via Cloud Monitoring metrics.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Service Usage API v1 rejects pageSize > 200 with a 400 error,
causing the script to bail out with "Service Usage API did not
return services" even when the SA has valid access.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
…ripts

The scripts were querying non-existent metric types:
  - quota/allocation         → quota/allocation/usage
  - quota/rate/net_ingress   → quota/rate/net_usage
  - quota/rate/net_egress    (removed — does not exist)
  - quota/rate/per_method    (removed — does not exist)

These wrong names caused CM to return 0 time series on every run,
making all usage-based issue checks silently no-op.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
The full script stdout is passed directly to RW.Core.Add Pre To Report,
so the heading appeared verbatim in the user-facing platform report.
The context content (project, services, console links) is kept.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
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