metric

package
v0.4.5 Latest Latest
Warning

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

Go to latest
Published: Mar 6, 2023 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func MakeLabels

func MakeLabels(labelValues ...string) prometheus.Labels

func NewGaugeVecFrom

func NewGaugeVecFrom(opts prometheus.GaugeOpts, labelNames []string) *prometheus.GaugeVec

NewGaugeFrom constructs, registers and returns a GaugeVec.

Types

type SettableCounterOpts

type SettableCounterOpts prometheus.GaugeOpts

SettableCounterOpts is an alias for prometheus.GaugeOpts.

type SettableCounterVec

type SettableCounterVec struct {
	*prometheus.GaugeVec
}

SettableCounterVec is a Counter metric that can be updated by using `Set()`.

Some folks suggest implementing custom collector, see https://www.robustperception.io/setting-a-prometheus-counter

func NewSettableCounterVec

func NewSettableCounterVec(opts SettableCounterOpts, labelNames []string) *SettableCounterVec

NewSettableCounterVec constructs and returns a SettableGaugeVec.

func NewSettableCounterVecFrom

func NewSettableCounterVecFrom(opts SettableCounterOpts, labelNames []string) *SettableCounterVec

NewSettableCounterVecFrom constructs, registers and returns a SettableGaugeVec.

Jump to

Keyboard shortcuts

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