Update some metrics

This commit is contained in:
IamTheFij 2022-11-07 20:50:18 -08:00
parent f9d46faae9
commit 1fad6b691c
2 changed files with 11 additions and 2 deletions

View File

@ -23,7 +23,8 @@ job "blocky" {
}
port "api" {
host_network = "loopback"
# TODO: This may be broken. It seems we're exposing the loopback address which can't be reached
# host_network = "loopback"
to = "4000"
}
}
@ -48,7 +49,7 @@ job "blocky" {
connect {
sidecar_service {
proxy {
local_service_port = 400
local_service_port = 4000
expose {
path {

View File

@ -76,6 +76,14 @@ job "backup%{ if batch_node != null }-oneoff-${batch_node}%{ endif }" {
}
}
check {
port = "metrics"
type = "http"
path = "/health"
interval = "10s"
timeout = "3s"
}
meta {
metrics_addr = "$${NOMAD_ADDR_metrics}"
}