Skip to content

Add gcp-cloud-sql-performance CodeBundle - #735

Open
rw-codebundle-agent[bot] wants to merge 1 commit into
mainfrom
codebundle/gcp-cloud-sql-performance
Open

Add gcp-cloud-sql-performance CodeBundle#735
rw-codebundle-agent[bot] wants to merge 1 commit into
mainfrom
codebundle/gcp-cloud-sql-performance

Conversation

@rw-codebundle-agent

Copy link
Copy Markdown
Contributor

Closes #162

Adds the gcp-cloud-sql-performance CodeBundle to rw-cli-codecollection.

What it monitors

Discovers Cloud SQL instances in a GCP project and flags:

  • Utilization: CPU/memory/disk utilization above CPU_THRESHOLD_PERCENT over the look-back window
  • Performance: throughput spikes / noisy traffic via Cloud Monitoring network & IOPS metrics
  • Long-running queries: query log parsing for queries exceeding LONG_QUERY_SECONDS (degrades gracefully when logging is off)
  • Storage growth: high-fill instances, especially without automatic storage increase

Includes a runbook.robot, in-repo sli.robot (0-1 health score across the four dimensions), generation rules (with - type: sli), slx/taskset/sli templates, README, and Terraform test infrastructure under .test/.

Deviations from design spec

  • Added STORAGE_FILL_THRESHOLD_PERCENT optional env var to tune the storage-fill detection threshold (not in the original spec's env_vars list).
  • Long-running query detection relies on Cloud SQL query/performance logging being enabled; when unavailable the task emits a note rather than failing, per the spec.

Co-authored-by: rw-codebundle-agent[bot] <rw-codebundle-agent[bot]@users.noreply.github.com>

Adds the gcp-cloud-sql-performance CodeBundle. It discovers Cloud SQL
instances in a GCP project and flags over-utilized, poorly-performing,
long-running-query, and storage-at-risk instances via Cloud Monitoring
metrics and instance logs. Includes runbook, SLI, generation rules,
templates, README, and Terraform test infrastructure.

Co-authored-by: rw-codebundle-agent[bot] <rw-codebundle-agent[bot]@users.noreply.github.com>
@rw-codebundle-agent
rw-codebundle-agent Bot requested a review from a team as a code owner August 7, 2026 15:38
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.

[Codebundle] Health check for Jenkins X

0 participants