metric

package
v1.1.2-0...-f7e2eea Latest Latest
Warning

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

Go to latest
Published: Dec 31, 2020 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CounterVec

type CounterVec interface {
	Inc(lables ...string)
	Add(v float64, labels ...string)
	// contains filtered or unexported methods
}

func NewCounterVec

func NewCounterVec(cfg *CounterVecOpts) CounterVec

type CounterVecOpts

type CounterVecOpts VectorOpts

type GaugeVecOpts

type GaugeVecOpts VectorOpts

type GuageVec

type GuageVec interface {
	Set(v float64, labels ...string)
	Inc(labels ...string)
	Add(v float64, labels ...string)
	// contains filtered or unexported methods
}

func NewGaugeVec

func NewGaugeVec(cfg *GaugeVecOpts) GuageVec

type HistogramVec

type HistogramVec interface {
	Observe(v int64, lables ...string)
	// contains filtered or unexported methods
}

func NewHistogramVec

func NewHistogramVec(cfg *HistogramVecOpts) HistogramVec

type HistogramVecOpts

type HistogramVecOpts struct {
	Namespace string
	Subsystem string
	Name      string
	Help      string
	Labels    []string
	Buckets   []float64
}

type VectorOpts

type VectorOpts struct {
	Namespace string
	Subsystem string
	Name      string
	Help      string
	Labels    []string
}

VectorOpts general configuration

Jump to

Keyboard shortcuts

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