From af0008fcf7ccf003115a218fe46d3be57bb5503c Mon Sep 17 00:00:00 2001 From: Rajani kant Tiwari <52532036+rajanikanttiwari91@users.noreply.github.com> Date: Tue, 16 Apr 2024 17:40:07 +0530 Subject: [PATCH 1/3] fix: Enable Datadog filtering for HMS/WD metrics --- common.tf | 1 + 1 file changed, 1 insertion(+) diff --git a/common.tf b/common.tf index 0b11d38..aa00902 100644 --- a/common.tf +++ b/common.tf @@ -7,6 +7,7 @@ locals { instance_alias = var.instance_name == "" ? "waggledance" : format("waggledance-%s", var.instance_name) remote_metastore_zone_prefix = var.instance_name == "" ? "remote-metastore" : format("remote-metastore-%s", var.instance_name) + datadog_tags = join(" ", formatlist("%s:%s", keys(module.tags), values(module.tags))) } data "aws_caller_identity" "current" {} From abdd1956fb6e800c32b718590b6a65b199ea8195 Mon Sep 17 00:00:00 2001 From: Rajani kant Tiwari <52532036+rajanikanttiwari91@users.noreply.github.com> Date: Tue, 16 Apr 2024 17:42:37 +0530 Subject: [PATCH 2/3] fix: Enable Datadog filtering for HMS/WD metrics --- templates.tf | 1 + 1 file changed, 1 insertion(+) diff --git a/templates.tf b/templates.tf index fee7052..d145eb3 100644 --- a/templates.tf +++ b/templates.tf @@ -7,6 +7,7 @@ locals { default_exposed_endpoints = "health,info,metrics" exposed_endpoints = var.prometheus_enabled ? join(",", [local.default_exposed_endpoints, "prometheus"]) : local.default_exposed_endpoints + datadog_tags = local.datadog_tags } data "template_file" "endpoints_server_yaml" { From a4313c1872a1f94f0e36793be1a382e9911aad83 Mon Sep 17 00:00:00 2001 From: Rajani kant Tiwari <52532036+rajanikanttiwari91@users.noreply.github.com> Date: Tue, 16 Apr 2024 17:48:46 +0530 Subject: [PATCH 3/3] fix: Enable Datadog filtering for HMS/WD metrics --- templates/datadog-agent.json | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/templates/datadog-agent.json b/templates/datadog-agent.json index d2f49fb..56dd459 100644 --- a/templates/datadog-agent.json +++ b/templates/datadog-agent.json @@ -19,6 +19,10 @@ { "name": "ECS_FARGATE", "value": "true" + }, + { + "name": "DD_TAGS", + "value": "${datadog_tags}" } ], "healthCheck": {