Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Server ¶
type Server struct {
// contains filtered or unexported fields
}
Server simply defines a webserver to handle metrics exporting.
func NewServer ¶
func NewServer() *Server
NewServer initializes a new server to handle metrics exporting.
func (*Server) InitializeMetrics ¶
InitializeMetrics initializes all metrics for all gRPC methods registered on a GRPC server.
func (*Server) ListenAndServe ¶
ListenAndServe simply wraps the http router for the metrics endpoint.
func (*Server) UnaryServerInterceptor ¶
func (s *Server) UnaryServerInterceptor() grpc.UnaryServerInterceptor
UnaryServerInterceptor returns an intercaptor for the GRPC server to gather metrics.
Click to show internal directories.
Click to hide internal directories.