From f37337cbf3a98bc13d8a663ada7d00943654dca9 Mon Sep 17 00:00:00 2001 From: Jonathan Fung <121899091+jonfung-dydx@users.noreply.github.com> Date: Tue, 12 Dec 2023 02:15:13 +0800 Subject: [PATCH] tf vars for dd-error-tracking-format flag (#59) --- modules/validator/ecs.tf | 1 + modules/validator/variables.tf | 6 ++++++ 2 files changed, 7 insertions(+) diff --git a/modules/validator/ecs.tf b/modules/validator/ecs.tf index 78277500..40bbdeec 100644 --- a/modules/validator/ecs.tf +++ b/modules/validator/ecs.tf @@ -136,6 +136,7 @@ resource "aws_ecs_task_definition" "main" { # for additional details. "--dd-agent-host $(wget -O - http://169.254.169.254/latest/meta-data/local-ipv4)", "--bridge-daemon-eth-rpc-endpoint", var.bridge_daemon_eth_rpc_endpoint, + "--dd-error-tracking-format=${tostring(var.datadog_error_tracking_format)}", ])) ] essential = true diff --git a/modules/validator/variables.tf b/modules/validator/variables.tf index 25cf4f7a..1c2d2a12 100644 --- a/modules/validator/variables.tf +++ b/modules/validator/variables.tf @@ -149,6 +149,12 @@ variable "datadog_env" { default = "" } +variable "datadog_error_tracking_format" { + type = bool + description = "Whether to format error log tag values into datadog error tracking format" + default = true +} + variable "prometheus_port" { type = number description = "the prometheus port used in the `com.datadoghq.ad.instances`."