Add gcp-cloudrun-utilization-health CodeBundle - #720
Open
rw-codebundle-agent[bot] wants to merge 1 commit into
Open
Add gcp-cloudrun-utilization-health CodeBundle#720rw-codebundle-agent[bot] wants to merge 1 commit into
rw-codebundle-agent[bot] wants to merge 1 commit into
Conversation
Monitors GCP Cloud Run utilization and scaling health per project: over-utilized CPU/memory, unbounded max instances, low concurrency, idle-warming min-instances, and under-utilized services, plus a utilization report for LLM cost/sizing review. Addresses issue #155 (design-spec: gcp-cloudrun-utilization-health).
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.
Closes #155
Summary
Adds the
gcp-cloudrun-utilization-healthCodeBundle torw-cli-codecollection. It monitors resource utilization and scaling configuration of GCP Cloud Run services per project, flagging over-provisioned (under-utilized), over-utilized, and improperly scaled services, and captures a utilization/scaling report for LLM-based cost and sizing review.Tasks
check_cpu_utilization.sh, flags services at/above CPU threshold (sev 3),data:metricscheck_memory_utilization.sh, flags OOM risk (sev 3),data:metricscheck_concurrency_scaling.sh, flags unbounded max instances (sev 3), low concurrency and idle-warming min-instances (sev 2),data:configfind_underutilized_services.sh, flags idle/over-provisioned services (sev 2),data:metricscapture_utilization_report.sh, captures metrics+config for LLM review (no issues)SLI
In-repo
sli.robotproduces a binary 0-1 health score across CPU, memory, and scaling dimensions (pushed as sub-metrics with raw issue counts) with the aggregate pushed as the primary metric. Generation rules include- type: sliand a*-sli.yamltemplate is provided.Verification
bash -n) and logic unit-tested against mockedgcloud/Cloud Monitoring responses.test/): Taskfile + Terraform fixturesDeviations from the design spec
gcp_cloud_run_service; usedgcp_run_services(the CloudQuery table name used by the collection indexer) so discovery matches.