Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Interceptors ¶
func Interceptors(collectors *Collectors) (*middleware.ClientInterceptor, *middleware.ServerInterceptor, error)
func RegisterMetrics ¶
func RegisterMetrics(registry *prometheus.Registry, collectors *Collectors) error
RegisterMetrics must be called before the Prometheus interceptor is used.
Types ¶
type Collectors ¶
type Collectors struct {
Client *grpcprom.ClientMetrics
Server *grpcprom.ServerMetrics
}
func NewPrometheusMetricsCollectors ¶
func NewPrometheusMetricsCollectors() *Collectors
Click to show internal directories.
Click to hide internal directories.