From a4ccdb47683ba1c280902124d7d73b7ed0faacf7 Mon Sep 17 00:00:00 2001 From: Ehsan Aliakbar Date: Mon, 31 Jul 2023 23:29:39 +0330 Subject: [PATCH] use https and port 9091 for prometheus --- main.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/main.go b/main.go index 7d82695..3aaaacc 100644 --- a/main.go +++ b/main.go @@ -175,7 +175,7 @@ func collectMetrics() { Namespace: namespace, InstanceName: prometheusInstanceName, ShardedInstanceName: shardedInstanceName, - InstanceAddress: "http://" + address.IP + ":9090", + InstanceAddress: "https://" + address.IP + ":9091", TrackedLabels: cardinality.TrackedLabelNames{ SeriesCountByMetricNameLabels: [10]string{}, LabelValueCountByLabelNameLabels: [10]string{}, @@ -185,7 +185,7 @@ func collectMetrics() { } } else { // If the endpoint is already known, update it's address - cardinalityInfoByInstance[instanceID].InstanceAddress = "http://" + address.IP + ":9090" + cardinalityInfoByInstance[instanceID].InstanceAddress = "https://" + address.IP + ":9091" } if authValue, ok := promAPIAuthValues[instanceID]; ok { // Check for Prometheus API credentials for sharded instance