Skip to content

Commit

Permalink
use https and port 9091 for prometheus
Browse files Browse the repository at this point in the history
  • Loading branch information
Ehsan Aliakbar committed Jul 31, 2023
1 parent d99aad7 commit a4ccdb4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions main.go
Original file line number Diff line number Diff line change
Expand Up @@ -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{},
Expand All @@ -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
Expand Down

0 comments on commit a4ccdb4

Please sign in to comment.