Documentation ¶
Index ¶
- func AddCounterVec(name MKey, labels map[string]string, val float64)
- func AddGauge(name MKey, val float64)
- func DecGauge(name MKey)
- func DeleteCounterVec(name MKey, labels map[string]string)
- func DeleteGaugeVec(name MKey, labels map[string]string)
- func IncCounterVec(name MKey, labels map[string]string)
- func IncGauge(name MKey)
- func Init()
- func RegisterCounterVec(name MKey, labels []string)
- func RegisterGauge(name MKey)
- func RegisterGaugeCached(name MKey)
- func RegisterGaugeVec(name MKey, labels []string)
- func RegisterGauges(names ...MKey)
- func RegisterGaugesWithOpts(gOpts []prometheus.GaugeOpts)
- func SetGauge(name MKey, val float64)
- func SetGaugeVec(name MKey, labels map[string]string, val float64)
- func SubGauge(name MKey, val float64)
- type Collector
- type MKey
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AddCounterVec ¶
AddCounterVec increments the CounterVec by arbitrary value.
func AddGauge ¶
AddGauge adds the given value to the Gauge. (The value can be negative, resulting in a decrease of the Gauge.)
func DecGauge ¶
func DecGauge(name MKey)
DecGauge decrements the Gauge by 1. Use SubGauge to decrement it by arbitrary values.
func DeleteCounterVec ¶ added in v0.2.1
DeleteCounterVec deletes the CounterVec value.
func DeleteGaugeVec ¶ added in v0.2.1
DeleteGaugeVec deletes the CounterVec value.
func IncCounterVec ¶
IncCounterVec increments the CounterVec by 1. Use AddCounterVec to increment it by arbitrary value.
func IncGauge ¶
func IncGauge(name MKey)
IncGauge increments the Gauge by 1. Use AddGauge to increment it by arbitrary values.
func RegisterCounterVec ¶
func RegisterGauge ¶
func RegisterGauge(name MKey)
func RegisterGaugeCached ¶
func RegisterGaugeCached(name MKey)
func RegisterGaugeVec ¶
func RegisterGauges ¶
func RegisterGauges(names ...MKey)
func RegisterGaugesWithOpts ¶
func RegisterGaugesWithOpts(gOpts []prometheus.GaugeOpts)
func SetGaugeVec ¶
SetGaugeVec sets the Gauge to an arbitrary value.
Types ¶
Click to show internal directories.
Click to hide internal directories.