prometheus

package
v0.0.0-...-cd29b86 Latest Latest
Warning

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

Go to latest
Published: Jan 10, 2022 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Prometheus

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

Prometheus .

func New

func New() *Prometheus

New ctor

func (*Prometheus) ConsumeSeconds

func (p *Prometheus) ConsumeSeconds(d time.Duration, service string, name string)

ConsumeSeconds .

func (*Prometheus) DecConnection

func (p *Prometheus) DecConnection(name string)

DecConnection .

func (*Prometheus) DecConsumer

func (p *Prometheus) DecConsumer(service string, name string)

DecConsumer .

func (*Prometheus) Handle

func (p *Prometheus) Handle(ctx *fasthttp.RequestCtx)

Handler the http handler for metrics.

func (*Prometheus) IncConnection

func (p *Prometheus) IncConnection(name string)

IncConnection .

func (*Prometheus) IncConsumeError

func (p *Prometheus) IncConsumeError(service string, name string)

IncConsumeError .

func (*Prometheus) IncConsumer

func (p *Prometheus) IncConsumer(service string, name string)

IncConsumer .

func (*Prometheus) IncError

func (p *Prometheus) IncError(service string)

IncError .

func (*Prometheus) IncSendError

func (p *Prometheus) IncSendError(service string, name string)

IncSendError .

func (*Prometheus) SendSeconds

func (p *Prometheus) SendSeconds(d time.Duration, service string, name string)

SendSeconds .

Jump to

Keyboard shortcuts

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