Documentation ¶
Index ¶
- func CounterValue(t *testing.T, registry *prometheus.Registry, name string, ...) float64
- func FindMetric(t *testing.T, registry *prometheus.Registry, ...) *io_prometheus_client.Metric
- func HistogramBucketValue(t *testing.T, registry *prometheus.Registry, name string, ...) uint64
- func HistogramSumValue(t *testing.T, registry *prometheus.Registry, name string, ...) float64
- func Must[I, R any](fn func(I) (R, error)) func(I) R
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CounterValue ¶ added in v0.15.0
func CounterValue(t *testing.T, registry *prometheus.Registry, name string, labels prometheus.Labels) float64
CounterValue gather and return value of counter metric with given name and labels.
func FindMetric ¶ added in v0.15.0
func FindMetric( t *testing.T, registry *prometheus.Registry, metricType io_prometheus_client.MetricType, name string, labels prometheus.Labels, ) *io_prometheus_client.Metric
FindMetric gather and returns metric of the given type, name and with the given labels from the registry.
func HistogramBucketValue ¶ added in v0.15.0
func HistogramBucketValue(t *testing.T, registry *prometheus.Registry, name string, labels prometheus.Labels, upperBound float64) uint64
func HistogramSumValue ¶ added in v0.15.0
func HistogramSumValue(t *testing.T, registry *prometheus.Registry, name string, labels prometheus.Labels) float64
HistogramSumValue gather and return sample sum of histogram metric with given name and labels.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.