Skip to content

Commit

Permalink
feat: enable query insights for CloudSQL read replicas (#38)
Browse files Browse the repository at this point in the history
  • Loading branch information
HeshamMeneisi authored Apr 25, 2024
1 parent 25d1eaf commit 79e0a5a
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions modules/google_sql_database_instance/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -199,6 +199,14 @@ resource "google_sql_database_instance" "read_replica" {
enable_private_path_for_google_cloud_services = var.settings_ip_configuration_enable_private_path_for_google_cloud_services
}

insights_config {
query_insights_enabled = true
query_string_length = var.settings_insights_config_query_string_length
query_plans_per_minute = var.settings_insights_config_query_plans_per_minute
record_application_tags = true
record_client_address = true
}

dynamic "database_flags" {
iterator = flag
for_each = local.custom_database_flags
Expand Down

0 comments on commit 79e0a5a

Please sign in to comment.