metrics

package
v0.0.0-...-03e9eba Latest Latest
Warning

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

Go to latest
Published: Feb 27, 2025 License: Apache-2.0 Imports: 7 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AssertAllHistogramBucketsAreEmpty

func AssertAllHistogramBucketsAreEmpty(t *testing.T, h prometheus.Histogram, msgAndArgs ...interface{})

func AssertCounterEqualsInt

func AssertCounterEqualsInt(t *testing.T, expected int, c prometheus.Counter)

func AssertCounterGreaterOrEqualsInt

func AssertCounterGreaterOrEqualsInt(t *testing.T, threshold int, c prometheus.Counter)

func AssertHistogramBucketEquals

func AssertHistogramBucketEquals(t *testing.T, expected, bucket float64, h prometheus.Histogram, msgAndArgs ...interface{})

func AssertHistogramSampleCountEquals

func AssertHistogramSampleCountEquals(t *testing.T, expected uint64, h prometheus.Histogram, msgAndArgs ...interface{})

func AssertMetricsCounterEquals

func AssertMetricsCounterEquals(t *testing.T, expected int, c prometheus.Counter)

func AssertMetricsGaugeEquals

func AssertMetricsGaugeEquals(t *testing.T, expected int, g prometheus.Gauge, msgAndArgs ...interface{})

func GetCounterInt

func GetCounterInt(c prometheus.Counter) int

Types

This section is empty.

Jump to

Keyboard shortcuts

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