diff --git a/service/cloudsql/logs_access.tf b/service/cloudsql/logs_access.tf index 043e04ed..e1080726 100644 --- a/service/cloudsql/logs_access.tf +++ b/service/cloudsql/logs_access.tf @@ -113,24 +113,24 @@ resource "observe_dataset" "mysql_data_access_logs" { } } -resource "observe_link" "sql_access_logs" { - workspace = var.workspace.oid - source = each.value.source - target = each.value.target - fields = each.value.fields - label = each.key - - for_each = { - "PostGresDatabaseAccess" = { - target = observe_dataset.cloud_sql_instance.oid - fields = ["database_id"] - source = observe_dataset.postgres_data_access_logs.oid - } - - "MySQLDatabaseAccess" = { - target = observe_dataset.cloud_sql_instance.oid - fields = ["database_id"] - source = observe_dataset.mysql_data_access_logs.oid - } - } -} +# resource "observe_link" "sql_access_logs" { +# workspace = var.workspace.oid +# source = each.value.source +# target = each.value.target +# fields = each.value.fields +# label = each.key + +# for_each = { +# "PostGresDatabaseAccess" = { +# target = observe_dataset.cloud_sql_instance.oid +# fields = ["database_id"] +# source = observe_dataset.postgres_data_access_logs.oid +# } + +# "MySQLDatabaseAccess" = { +# target = observe_dataset.cloud_sql_instance.oid +# fields = ["database_id"] +# source = observe_dataset.mysql_data_access_logs.oid +# } +# } +# } diff --git a/service/cloudsql/logs_error.tf b/service/cloudsql/logs_error.tf index 833d36af..a99ffec5 100644 --- a/service/cloudsql/logs_error.tf +++ b/service/cloudsql/logs_error.tf @@ -16,40 +16,40 @@ resource "observe_dataset" "cloud_sql_logs_error" { } -resource "observe_link" "sql_error_logs" { - workspace = var.workspace.oid - source = each.value.source - target = each.value.target - fields = each.value.fields - label = each.key - - for_each = { - - "DatabaseErrors" = { - target = observe_dataset.cloud_sql_instance.oid - fields = ["database_id"] - source = observe_dataset.cloud_sql_logs_error.oid - } - ## If we want to create an error log for each platform - # "PostGresDatabaseAccess" = { - # target = observe_dataset.cloud_sql_instance.oid - # fields = ["database_id"] - # source = observe_dataset.postgres_error_logs.oid - # } - - # "MySQLDatabaseError" = { - # target = observe_dataset.cloud_sql_instance.oid - # fields = ["database_id"] - # source = observe_dataset.mysql_error_logs.oid - # } - - # "SQLServerDatabaseError" = { - # target = observe_dataset.cloud_sql_instance.oid - # fields = ["database_id"] - # source = observe_dataset.sqlserver_error_logs.oid - # } - } -} +# resource "observe_link" "sql_error_logs" { +# workspace = var.workspace.oid +# source = each.value.source +# target = each.value.target +# fields = each.value.fields +# label = each.key + +# for_each = { + +# "DatabaseErrors" = { +# target = observe_dataset.cloud_sql_instance.oid +# fields = ["database_id"] +# source = observe_dataset.cloud_sql_logs_error.oid +# } +# ## If we want to create an error log for each platform +# # "PostGresDatabaseAccess" = { +# # target = observe_dataset.cloud_sql_instance.oid +# # fields = ["database_id"] +# # source = observe_dataset.postgres_error_logs.oid +# # } + +# # "MySQLDatabaseError" = { +# # target = observe_dataset.cloud_sql_instance.oid +# # fields = ["database_id"] +# # source = observe_dataset.mysql_error_logs.oid +# # } + +# # "SQLServerDatabaseError" = { +# # target = observe_dataset.cloud_sql_instance.oid +# # fields = ["database_id"] +# # source = observe_dataset.sqlserver_error_logs.oid +# # } +# } +# } ## If we want to create an error log for each platform diff --git a/service/cloudsql/metrics.tf b/service/cloudsql/metrics.tf index 19dc5418..804764e8 100644 --- a/service/cloudsql/metrics.tf +++ b/service/cloudsql/metrics.tf @@ -245,11 +245,11 @@ resource "observe_link" "cloud_sql_metrics" { } - "Cloud SQL Metrics Wide" = { - target = observe_dataset.cloud_sql_instance.oid - fields = ["database_id"] - source = observe_dataset.cloud_sql_metrics_wide[0].oid - } + # "Cloud SQL Metrics Wide" = { + # target = observe_dataset.cloud_sql_instance.oid + # fields = ["database_id"] + # source = observe_dataset.cloud_sql_metrics_wide[0].oid + # } } : {} workspace = var.workspace.oid