From 307c5a8ed44bcb4b09fe3f1d63408825c2930bb1 Mon Sep 17 00:00:00 2001 From: DQ Date: Fri, 5 Feb 2021 18:44:28 +0000 Subject: [PATCH] Fix metrics template for http mode the port shouldn't be hardcode Signed-off-by: DQ --- make/photon/prepare/templates/nginx/nginx.http.conf.jinja | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/make/photon/prepare/templates/nginx/nginx.http.conf.jinja b/make/photon/prepare/templates/nginx/nginx.http.conf.jinja index da601eea3..0ad9dd73d 100644 --- a/make/photon/prepare/templates/nginx/nginx.http.conf.jinja +++ b/make/photon/prepare/templates/nginx/nginx.http.conf.jinja @@ -210,11 +210,11 @@ http { } {% if metric.enabled %} upstream core_metrics { - server core:9090; + server core:{{ metric.port }}; } upstream registry_metrics { - server registry:5001; + server registry:{{ metric.port }}; } upstream harbor_exporter {