Fix metrics template for http mode

the port shouldn't be hardcode

Signed-off-by: DQ <dengq@vmware.com>
This commit is contained in:
DQ 2021-02-05 18:44:28 +00:00
parent ec83f49a1a
commit 307c5a8ed4
1 changed files with 2 additions and 2 deletions

View File

@ -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 {