Skip to content

Commit 6816c95

Browse files
author
Ash
committed
change go.mod
1 parent 79ad49e commit 6816c95

File tree

3 files changed

+5
-4
lines changed

3 files changed

+5
-4
lines changed

doc/loadtest/docker/client/doorman_client.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff 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
}

doc/loadtest/docker/target/target.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ import (
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{})

go.mod

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
module github.com/youtube/doorman
1+
module github.com/Pythonista7/doorman
22

33
go 1.22.5
44

0 commit comments

Comments
 (0)