prometheus

package
v0.5.1 Latest Latest
Warning

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

Go to latest
Published: Apr 20, 2022 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type GinPrometheus

type GinPrometheus struct {
	// contains filtered or unexported fields
}

GinPrometheus gin调用Prometheus的struct

func New

func New(e *gin.Engine, options ...Option) *GinPrometheus

New new gin prometheus

func (*GinPrometheus) Middleware

func (gp *GinPrometheus) Middleware() gin.HandlerFunc

Middleware set gin middleware

type Option

type Option func(*GinPrometheus)

func Ignore

func Ignore(path ...string) Option

Ignore 添加忽略的路径

Jump to

Keyboard shortcuts

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