From da70aa74ca130a06fe827fa2eba60334818cb0ac Mon Sep 17 00:00:00 2001 From: Ian Fijolek Date: Fri, 11 Nov 2022 13:37:09 -0800 Subject: [PATCH] Add expose path for blocky /metrics Not sure if it's needed --- services/backups/backup.nomad | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/services/backups/backup.nomad b/services/backups/backup.nomad index 329054f..697bed0 100644 --- a/services/backups/backup.nomad +++ b/services/backups/backup.nomad @@ -57,6 +57,16 @@ job "backup%{ if batch_node != null }-oneoff-${batch_node}%{ endif }" { proxy { local_service_port = 8080 + # TODO: Do I need this? + expose { + path { + path = "/metrics" + protocol = "http" + local_path_port = 8080 + listener_port = "metrics" + } + } + upstreams { destination_name = "mysql-server" local_bind_port = 6060