From 4f7c41a7a5e2a356a045cdad4510f38933f14127 Mon Sep 17 00:00:00 2001 From: Ian Fijolek Date: Thu, 2 Mar 2023 11:07:07 -0800 Subject: [PATCH] Add envoy metrics to redis --- databases/redis.nomad | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/databases/redis.nomad b/databases/redis.nomad index a40c04d..a6a2a24 100644 --- a/databases/redis.nomad +++ b/databases/redis.nomad @@ -19,6 +19,9 @@ job "redis" { host_network = "loopback" to = 6379 } + port "envoy_metrics" { + to = 9123 + } } service { @@ -29,6 +32,10 @@ job "redis" { sidecar_service { proxy { local_service_port = 6379 + + config { + envoy_prometheus_bind_addr = "0.0.0.0:9123" + } } } @@ -46,6 +53,10 @@ job "redis" { # interval = "10s" # timeout = "2s" # } + + meta { + envoy_metrics_addr = "${NOMAD_ADDR_envoy_metrics}" + } } task "redis" {