From 24000033bdd025a90fc7e8d1535a63abf30179ed Mon Sep 17 00:00:00 2001 From: Yassine Zouggari Date: Mon, 21 Jul 2025 10:06:47 +0200 Subject: [PATCH 1/2] Add DogStatsD address in Vault telemetry Add the option to set a DogStatsD address in the Vault main configuration, in the telemetry section, if the user defines the new variable `vault_dogstatsd_address`. Cf. https://developer.hashicorp.com/vault/docs/configuration/telemetry#dogstatsd_addr --- templates/vault_main_configuration.hcl.j2 | 3 +++ 1 file changed, 3 insertions(+) diff --git a/templates/vault_main_configuration.hcl.j2 b/templates/vault_main_configuration.hcl.j2 index f104c290..d61bf400 100644 --- a/templates/vault_main_configuration.hcl.j2 +++ b/templates/vault_main_configuration.hcl.j2 @@ -123,6 +123,9 @@ telemetry { {% if vault_statsd_address is defined %} statsd_address = "{{vault_statsd_address}}" {% endif -%} + {% if vault_dogstatsd_address is defined %} + dogstatsd_addr = "{{vault_dogstatsd_address}}" + {% endif -%} {% if vault_prometheus_retention_time is defined %} prometheus_retention_time = "{{ vault_prometheus_retention_time }}" {% endif -%} From 22d1cfe8164e736dc504a5b335f8cd53f5f41e11 Mon Sep 17 00:00:00 2001 From: Yassine Zouggari Date: Mon, 21 Jul 2025 10:10:26 +0200 Subject: [PATCH 2/2] Document new variable for DogStatsD address --- role_variables.md | 1 + 1 file changed, 1 insertion(+) diff --git a/role_variables.md b/role_variables.md index e0f6630e..2959e75a 100644 --- a/role_variables.md +++ b/role_variables.md @@ -972,6 +972,7 @@ available starting at Vault version 1.4. - If enabled, you must set at least one of the following parameters according to your telemetry provider: - *vault_statsite_address* with a format of "FQDN:PORT" - *vault_statsd_address* with a format of "FQDN:PORT" + - *vault_dogstatsd_address* with a format of "FQDN:PORT" - *vault_prometheus_retention_time* e.g: "30s" or "24h" - If enabled, optionally set *vault_telemetry_disable_hostname* to strip the hostname prefix from telemetry data - Default value: *false*