Skip to content

Commit

Permalink
Fix prometheus/golang_client usage (#45) (#46)
Browse files Browse the repository at this point in the history
  • Loading branch information
filex authored and jonnenauha committed Jun 20, 2019
1 parent 2a5daa5 commit 9893d70
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 @@ -176,7 +176,7 @@ func main() {
http.Handle(StartParams.Path, handler)
} else {
prometheus.MustRegister(PrometheusExporter)
http.Handle(StartParams.Path, prometheus.Handler())
http.Handle(StartParams.Path, promhttp.Handler())
}

if StartParams.Path != "/" {
Expand Down

0 comments on commit 9893d70

Please sign in to comment.