Skip to content

Add performance_capture_config to google_sql_database_instance.#17676

Open
sids-agravat wants to merge 2 commits into
GoogleCloudPlatform:mainfrom
sids-agravat:main
Open

Add performance_capture_config to google_sql_database_instance.#17676
sids-agravat wants to merge 2 commits into
GoogleCloudPlatform:mainfrom
sids-agravat:main

Conversation

@sids-agravat
Copy link
Copy Markdown

@sids-agravat sids-agravat commented May 21, 2026

This change introduces the performance_capture_config block within the settings of a SQL database instance. It includes fields such as enabled, probing_interval_seconds, probe_threshold, running_threads_threshold, seconds_behind_source_threshold, and transaction_duration_threshold. A new acceptance test has been added to verify the functionality, and the documentation has been updated to reflect the new configuration options.

Currently, this is a phased release gating these fields exclusively to the google-beta provider to satisfy launch blocking requirements.

Testing: b/474020862#comment3
Public doc: https://docs.cloud.google.com/sql/docs/mysql/performance-capture

Release Note Template for Downstream PRs (will be copied)

See Write release notes for guidance.

sql: added `performance_capture_config` to `google_sql_database_instance`

This change introduces the `performance_capture_config` block within the `settings` of a SQL database instance.
It includes fields such as `enabled`, `probing_interval_seconds`, `probe_threshold`, `running_threads_threshold`, `seconds_behind_source_threshold`, and `transaction_duration_threshold`.
A new acceptance test has been added to verify the functionality, and the documentation has been updated to reflect the new configuration options.
@modular-magician modular-magician added the awaiting-approval Pull requests that need reviewer's approval to run presubmit tests label May 21, 2026
@github-actions github-actions Bot requested a review from roaks3 May 21, 2026 21:56
@github-actions
Copy link
Copy Markdown

Googlers: For automatic test runs see go/terraform-auto-test-runs.

@roaks3, a repository maintainer, has been assigned to review your changes. If you have not received review feedback within 2 business days, please leave a comment on this PR asking them to take a look.

You can help make sure that review is quick by doing a self-review and by running impacted tests locally.

…nstance_test.go.tmpl` was renamed in GoogleCloudPlatform#17561

Reverting the changes to support the template tags.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

awaiting-approval Pull requests that need reviewer's approval to run presubmit tests

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants