File tree Expand file tree Collapse file tree 3 files changed +5
-4
lines changed Expand file tree Collapse file tree 3 files changed +5
-4
lines changed Original file line number Diff line number Diff line change @@ -10,7 +10,7 @@ import (
1010
1111 log "github.com/golang/glog"
1212 "github.com/pborman/uuid"
13- "github.com/prometheus/client_golang/prometheus"
13+ "github.com/prometheus/client_golang/prometheus/promhttp" // Add this line
1414 "github.com/youtube/doorman/go/client/doorman"
1515 "github.com/youtube/doorman/go/ratelimiter"
1616 "golang.org/x/net/context"
@@ -122,7 +122,7 @@ func main() {
122122 }()
123123 }
124124 }
125- http .Handle ("/metrics" , prometheus .Handler ())
125+ http .Handle ("/metrics" , promhttp .Handler ())
126126 http .ListenAndServe (fmt .Sprintf (":%v" , * port ), nil )
127127
128128}
Original file line number Diff line number Diff line change 88
99 log "github.com/golang/glog"
1010 "github.com/prometheus/client_golang/prometheus"
11+ "github.com/prometheus/client_golang/prometheus/promhttp" // Add this line
1112 "golang.org/x/net/context"
1213 "google.golang.org/grpc"
1314
@@ -47,7 +48,7 @@ func main() {
4748 log .Exitf ("failed to listen: %v" , err )
4849 }
4950
50- http .Handle ("/metrics" , prometheus .Handler ())
51+ http .Handle ("/metrics" , promhttp .Handler ())
5152 go http .ListenAndServe (fmt .Sprintf (":%v" , * debugPort ), nil )
5253 s := grpc .NewServer ()
5354 pb .RegisterGreeterServer (s , & server {})
Original file line number Diff line number Diff line change 1- module github.com/youtube /doorman
1+ module github.com/Pythonista7 /doorman
22
33go 1.22.5
44
You can’t perform that action at this time.
0 commit comments