Skip to content

Commit

Permalink
added grpc_server_handling_seconds_bucket metric
Browse files Browse the repository at this point in the history
  • Loading branch information
OS-M committed Oct 20, 2022
1 parent 6b0f627 commit 72f836d
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ import (
)

func StartGrpcMetrics(serv *grpc.Server, port string) error {
grpcPrometheus.EnableHandlingTimeHistogram()
grpcPrometheus.Register(serv)
http.Handle("/metrics", promhttp.Handler())
return http.ListenAndServe(":"+port, nil)
Expand Down

0 comments on commit 72f836d

Please sign in to comment.