Add envoy metrics to redis

This commit is contained in:
IamTheFij 2023-03-02 11:07:07 -08:00
parent 24461d4c6f
commit 4f7c41a7a5

View File

@ -19,6 +19,9 @@ job "redis" {
host_network = "loopback" host_network = "loopback"
to = 6379 to = 6379
} }
port "envoy_metrics" {
to = 9123
}
} }
service { service {
@ -29,6 +32,10 @@ job "redis" {
sidecar_service { sidecar_service {
proxy { proxy {
local_service_port = 6379 local_service_port = 6379
config {
envoy_prometheus_bind_addr = "0.0.0.0:9123"
}
} }
} }
@ -46,6 +53,10 @@ job "redis" {
# interval = "10s" # interval = "10s"
# timeout = "2s" # timeout = "2s"
# } # }
meta {
envoy_metrics_addr = "${NOMAD_ADDR_envoy_metrics}"
}
} }
task "redis" { task "redis" {