Skip to content

Commit

Permalink
Merge pull request #21 from awlx/fix_promPort
Browse files Browse the repository at this point in the history
Fix Prometheus Port binding error
  • Loading branch information
nileshsimaria authored Aug 22, 2018
2 parents a8482d3 + ee6b247 commit 0f86b4a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion main.go
Original file line number Diff line number Diff line change
Expand Up @@ -255,7 +255,7 @@ func main() {

if *prom {
go func() {
addr := fmt.Sprintf("localhost:%d", promPort)
addr := fmt.Sprintf("localhost:%d", *promPort)
http.Handle("/metrics", promhttp.Handler())
fmt.Println(http.ListenAndServe(addr, nil))
}()
Expand Down

0 comments on commit 0f86b4a

Please sign in to comment.