Skip to content

Commit

Permalink
Fix Prometheus scraping port
Browse files Browse the repository at this point in the history
  • Loading branch information
Guan Gui authored and ganievs committed Nov 27, 2023
1 parent bb89f48 commit 6a63ca0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion internal/resource/prometheus/scrape_annotations.go
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ func GetAnnotations(instance *v1beta1.TemporalCluster) map[string]string {
"prometheus.io/scrape": "true",
"prometheus.io/scheme": "http",
"prometheus.io/path": "/metrics",
"prometheus.io/port": fmt.Sprintf("%d", instance.Spec.Metrics.Prometheus.ListenPort),
"prometheus.io/port": fmt.Sprintf("%d", *instance.Spec.Metrics.Prometheus.ListenPort),
}
}
return map[string]string{}
Expand Down

0 comments on commit 6a63ca0

Please sign in to comment.