assertmetrics

package
v1.3.1 Latest Latest
Warning

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

Go to latest
Published: Aug 23, 2024 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Overview

Package assertmetrics provides utilities for verifying Prometheus metrics in tests given a Registry. See package tests for usage examples.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AssertValueInReg

func AssertValueInReg(t assert.TestingT, reg *prometheus.Registry, metricName string, labels labels.Labels, value float64)

func AssertValueInStr

func AssertValueInStr(t assert.TestingT, allMetrics string, metricName string, labels labels.Labels, value float64)

func ReadMetrics

func ReadMetrics(t assert.TestingT, reg *prometheus.Registry) string

Types

This section is empty.

Jump to

Keyboard shortcuts

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