Skip to content

Commit 2a47c6e

Browse files
committed
Add runtime metrics by default, disable unix socket by default
1 parent e3f6e2f commit 2a47c6e

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

main.tf

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,12 +13,15 @@ locals {
1313
DD_PROCESS_AGENT_ENABLED = "true"
1414
DD_TAGS = "env:${var.env} app:${var.app_name}"
1515
DD_TRACE_ANALYTICS_ENABLED = "true"
16+
DD_RUNTIME_METRICS_ENABLED = "true"
17+
1618

1719
// https://www.datadoghq.com/blog/monitor-aws-fargate/
1820
ECS_FARGATE = var.ecs_launch_type == "FARGATE" ? "true" : "false"
1921
},
2022
(var.ecs_launch_type == "EC2" && var.socket_apm_enabled_on_ec2) ? {
2123
DD_APM_RECEIVER_SOCKET = "/var/run/datadog.sock"
24+
DD_TRACE_AGENT_URL = "/var/run/datadog.sock"
2225
} : {}
2326
)
2427

variables.tf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ variable "resource_requirements" {
4747
}
4848

4949
variable "socket_apm_enabled_on_ec2" {
50-
default = true
50+
default = false
5151
}
5252

5353
variable "enabled" {

0 commit comments

Comments
 (0)