promutil

package
v1.4.0 Latest Latest
Warning

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

Go to latest
Published: Jun 2, 2021 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetCountValue added in v1.1.5

func GetCountValue(summaryMetric prometheus.Summary) (int, error)

GetCountValue is used for validation. It returns the number of times a Summary metric has recorded an observation.

func GetValue added in v1.1.5

func GetValue(gaugeMetric prometheus.Gauge) (int, error)

GetValue is used for validation. It returns a Gauge metric's value.

func GetVecValue added in v1.1.5

func GetVecValue(gaugeVecMetric *prometheus.GaugeVec, labels prometheus.Labels) (int, error)

GetVecValue is used for validation. It returns a Gauge Vec metric's value, or 0 if the label doesn't exist for the metric.

func NotifyIfErrors

func NotifyIfErrors(t *testing.T, errors ...error)

NotifyIfErrors writes any non-nil errors to a testing utility

Types

This section is empty.

Jump to

Keyboard shortcuts

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