promutil

package
v0.1.7 Latest Latest
Warning

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

Go to latest
Published: Nov 11, 2025 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddToCounter

func AddToCounter(c prometheus.Counter, n int)

AddToCounter adds a value to a prometheus counter.

func AddToCounterVec

func AddToCounterVec(c *prometheus.CounterVec, labels []string, n int)

AddToCounterVec add a value to given labels on a prometheus counter vector.

func AddToGauge

func AddToGauge(g prometheus.Gauge, n int)

AddToGauge adds a value to a prometheus gauge.

func Observe

func Observe(h prometheus.Observer, d time.Duration)

Observe observes a prometheus histogram.

func ObserveSize

func ObserveSize(h prometheus.Observer, size int)

ObserveSize observes a prometheus histogram size.

func SetGauge

func SetGauge(queue prometheus.Gauge, n int)

SetGauge sets a value to a prometheus gauge.

func SetGaugeVec

func SetGaugeVec(c *prometheus.GaugeVec, labels []string, n int)

SetGaugeVec sets a value to given labels on the prometheus gauge vector.

func SetUint64Gauge

func SetUint64Gauge(queue prometheus.Gauge, n uint64)

SetUint64Gauge sets a uint64 value to a prometheus gauge.

func SubFromGauge

func SubFromGauge(g prometheus.Gauge, n int)

SubFromGauge subtracts a given value from a prometheus gauge.

Types

This section is empty.

Jump to

Keyboard shortcuts

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