Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Metrics ¶
type Metrics struct {
// contains filtered or unexported fields
}
Metrics wraps the prometheus metrics gathering and serving.
It exposes gRPC and Go Runtime metrics.
func (*Metrics) InitializeMetrics ¶
InitializeMetrics initializes all metrics, with their appropriate null value, for all gRPC methods registered on a gRPC server. This is useful, to ensure that all metrics exist when collecting and querying.
func (*Metrics) Registry ¶ added in v1.6.0
func (s *Metrics) Registry() *prometheus.Registry
func (*Metrics) UnaryServerInterceptor ¶
func (s *Metrics) UnaryServerInterceptor() grpc.UnaryServerInterceptor
UnaryServerInterceptor returns an UnaryServerInterceptor that must be installed on the grpc.Server to gather metrics.
Click to show internal directories.
Click to hide internal directories.