g_metrics_v2

package
v0.0.37 Latest Latest
Warning

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

Go to latest
Published: Apr 1, 2020 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Prom

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

Prom struct info

func New

func New() *Prom

New creates a Prom instance.

func (*Prom) Add

func (p *Prom) Add(v int64)

Add add count v must > 0

func (*Prom) AddVec

func (p *Prom) AddVec(name string, v int64, extra ...string)

AddVec add count v must > 0

func (*Prom) Decr

func (p *Prom) Decr()

Decr decrements one stat counterVec without sampling

func (*Prom) DecrVec

func (p *Prom) DecrVec(name string, extra ...string)

DecrVec decrements one stat counterVec without sampling

func (*Prom) Incr

func (p *Prom) Incr()

Incr increments one stat counterVec without sampling

func (*Prom) IncrVec

func (p *Prom) IncrVec(name string, extra ...string)

IncrVec increments one stat counterVec without sampling

func (*Prom) State

func (p *Prom) State(v int64)

State set stateVec

func (*Prom) StateVec

func (p *Prom) StateVec(name string, v int64, extra ...string)

StateVec set stateVec

func (*Prom) WithCounter

func (p *Prom) WithCounter(name string) *Prom

WithCounter sets counter.

func (*Prom) WithCounterVec

func (p *Prom) WithCounterVec(name string, labels []string) *Prom

WithCounterVec sets counterVec.

func (*Prom) WithState

func (p *Prom) WithState(name string) *Prom

WithState sets state.

func (*Prom) WithStateVec

func (p *Prom) WithStateVec(name string, labels []string) *Prom

WithStateVec sets stateVec.

func (*Prom) WithTimerVec

func (p *Prom) WithTimerVec(name string, labels []string) *Prom

WithTimerVec with summary timerVec

Jump to

Keyboard shortcuts

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