Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func InitMetrics ¶
func InitMetrics() *prometheus.Registry
InitMetrics 不要使用默认 register, 太容易产生冲突. InitMetrics create a clean prometheus Registry to avoid conflicts.
func NewInstrumentationMiddleware ¶
func NewInstrumentationMiddleware(reg prometheus.Registerer) gin.HandlerFunc
NewInstrumentationMiddleware create a metrics gin middleware.
func WithServerMetrics ¶
func WithServerMetrics(logger *log.Logger, reg prometheus.Registerer) extgrpc.Option
WithServerMetrics create metrics interceptors for grpc server.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.