metrics

package
v1.2.16 Latest Latest
Warning

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

Go to latest
Published: Oct 7, 2023 License: Apache-2.0 Imports: 8 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Prometheus

type Prometheus struct {
	ReqCntURLLabelMappingFn func(c *gin.Context) string
	// contains filtered or unexported fields
}

func NewPrometheus

func NewPrometheus(port int, cs ...prometheus.Collector) *Prometheus

func (*Prometheus) AddURLMappingFn

func (p *Prometheus) AddURLMappingFn(fn func(c *gin.Context) string)

func (*Prometheus) HandlerFunc

func (p *Prometheus) HandlerFunc() gin.HandlerFunc

Jump to

Keyboard shortcuts

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