diff --git a/database/mysql/README.md b/database/mysql/README.md index 5c1f78c..39b7452 100644 --- a/database/mysql/README.md +++ b/database/mysql/README.md @@ -127,3 +127,8 @@ Creates DataDog monitors with the following checks: ## Related documentation DataDog documentation: [https://docs.datadoghq.com/integrations/mysql/](https://docs.datadoghq.com/integrations/mysql/) + +## Notes + +It could be not possible to modify `innodb_buffer_pool_size` or `innodb_buffer_pool_instances` mysql parameters (i.e. cloudsql). +In this case, InnoDB Pool monitors could be less useful for optimization even if they could inform when an instance should be upsized. diff --git a/database/mysql/inputs.tf b/database/mysql/inputs.tf index 2844e81..a14c0a9 100644 --- a/database/mysql/inputs.tf +++ b/database/mysql/inputs.tf @@ -253,25 +253,25 @@ variable "mysql_pool_efficiency_message" { } variable "mysql_pool_efficiency_threshold_critical" { - default = 20 + default = 30 description = "Maximum critical acceptable percent of innodb buffer pool efficiency" } variable "mysql_pool_efficiency_threshold_warning" { - default = 1 + default = 20 description = "Maximum warning acceptable percent of innodb buffer pool efficiency" } variable "mysql_pool_efficiency_time_aggregator" { description = "Monitor time aggregator for MySQL innodb buffer pool efficiency monitor [available values: min, max or avg]" type = "string" - default = "sum" + default = "min" } variable "mysql_pool_efficiency_timeframe" { description = "Monitor timeframe for MySQL innodb buffer pool efficiency monitor [available values: `last_#m` (1, 5, 10, 15, or 30), `last_#h` (1, 2, or 4), or `last_1d`]" type = "string" - default = "last_1h" + default = "last_4h" } ################################# @@ -303,12 +303,12 @@ variable "mysql_pool_utilization_message" { } variable "mysql_pool_utilization_threshold_critical" { - default = 90 + default = 95 description = "Maximum critical acceptable percent of innodb buffer pool utilization" } variable "mysql_pool_utilization_threshold_warning" { - default = 75 + default = 80 description = "Maximum warning acceptable percent of innodb buffer pool utilization" }