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.
Click to show internal directories.
Click to hide internal directories.