prometheuswrapper

package
v0.0.0-...-a08dd98 Latest Latest
Warning

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

Go to latest
Published: Dec 9, 2024 License: Apache-2.0 Imports: 5 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Wrapper

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

func NewWrapperDefault

func NewWrapperDefault(prefix string, tags, params []string) *Wrapper

func (*Wrapper) BeginQuery

func (wrp *Wrapper) BeginQuery() int32

BeginQuery new query counter

func (*Wrapper) FillMetrics

func (wrp *Wrapper) FillMetrics(info *openlatency.MetricsInfo)

FillMetrics info object

func (*Wrapper) IncError

func (wrp *Wrapper) IncError(etype openlatency.MetricErrorType, code string)

IncError counter

func (*Wrapper) IncNobid

func (wrp *Wrapper) IncNobid() int32

IncNobid counter

func (*Wrapper) IncSkip

func (wrp *Wrapper) IncSkip() int32

IncSkip counter

func (*Wrapper) IncSuccess

func (wrp *Wrapper) IncSuccess() int32

IncSuccess counter

func (*Wrapper) IncTimeout

func (wrp *Wrapper) IncTimeout() int32

IncTimeout counter

func (*Wrapper) UpdateQueryLatency

func (wrp *Wrapper) UpdateQueryLatency(latency time.Duration)

UpdateQueryLatency of request

Jump to

Keyboard shortcuts

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