metric

package
v1.1.7 Latest Latest
Warning

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

Go to latest
Published: Aug 25, 2021 License: MIT Imports: 2 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CounterVec

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

CounterVec interface represents a counter vector.

func NewCounterVec

func NewCounterVec(cfg *CounterVecOpts) CounterVec

NewCounterVec returns a CounterVec.

type CounterVecOpts

type CounterVecOpts VectorOpts

A CounterVecOpts is an alias of VectorOpts.

type GaugeVec

type GaugeVec interface {
	// Set sets v to labels.
	Set(v float64, labels ...string)
	// Inc increments labels.
	Inc(labels ...string)
	// Add adds v to labels.
	Add(v float64, labels ...string)
	// contains filtered or unexported methods
}

GaugeVec represents a gauge vector.

func NewGaugeVec

func NewGaugeVec(cfg *GaugeVecOpts) GaugeVec

NewGaugeVec returns a GaugeVec.

type GaugeVecOpts

type GaugeVecOpts VectorOpts

GaugeVecOpts is an alias of VectorOpts.

type HistogramVec

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

A HistogramVec interface represents a histogram vector.

func NewHistogramVec

func NewHistogramVec(cfg *HistogramVecOpts) HistogramVec

NewHistogramVec returns a HistogramVec.

type HistogramVecOpts

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

A HistogramVecOpts is a histogram vector options.

type VectorOpts

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

A VectorOpts is a general configuration.

Jump to

Keyboard shortcuts

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