diff --git a/database/postgresql/modules.tf b/database/postgresql/modules.tf new file mode 100644 index 0000000..8d42f36 --- /dev/null +++ b/database/postgresql/modules.tf @@ -0,0 +1,8 @@ +module "filter-tags" { + source = "../../common/filter-tags" + + environment = "${var.environment}" + resource = "postgresql" + filter_tags_use_defaults = "${var.filter_tags_use_defaults}" + filter_tags_custom = "${var.filter_tags_custom}" +} diff --git a/database/postgresql/monitors-postgresql.tf b/database/postgresql/monitors-postgresql.tf index 515c695..bcd92ec 100644 --- a/database/postgresql/monitors-postgresql.tf +++ b/database/postgresql/monitors-postgresql.tf @@ -14,7 +14,7 @@ resource "datadog_monitor" "postgresql_connection_too_high" { query = < ${var.postgresql_connection_threshold_critical} EOF @@ -45,7 +45,7 @@ resource "datadog_monitor" "postgresql_too_many_locks" { query = < ${var.postgresql_lock_threshold_critical} EOF