Skip to content

Commit

Permalink
Fix metricsPath param
Browse files Browse the repository at this point in the history
  • Loading branch information
wr8fdy committed Jun 6, 2019
1 parent 517a8eb commit c76446d
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 @@ -56,7 +56,7 @@ func main() {

handler := promhttp.HandlerFor(r, promhttp.HandlerOpts{})

http.Handle("/metrics", handler)
http.Handle(*metricsPath, handler)
http.HandleFunc("/", func(w http.ResponseWriter, r *http.Request) {
w.Write([]byte(fmt.Sprintf(`<html>
<head><title>AWS SQS exporter</title></head>
Expand Down

0 comments on commit c76446d

Please sign in to comment.