metrics

package
v0.2.3 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 1, 2021 License: MIT Imports: 16 Imported by: 0

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL