From c049dc07f221cfedad430e4c0aaa4f675af6c324 Mon Sep 17 00:00:00 2001 From: Quentin Manfroi Date: Tue, 18 Sep 2018 14:42:54 +0200 Subject: [PATCH] MON-105 use filter tags modules --- database/postgresql/modules.tf | 8 ++++++++ database/postgresql/monitors-postgresql.tf | 4 ++-- 2 files changed, 10 insertions(+), 2 deletions(-) create mode 100644 database/postgresql/modules.tf 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