metric_test_helpers

package
v0.0.0-...-ec066c1 Latest Latest
Warning

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

Go to latest
Published: Jul 17, 2024 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AssertAllMetricsHaveBeenRegistered

func AssertAllMetricsHaveBeenRegistered(t *testing.T, metrics MetricsRegisterer)

Types

type MetricsRegisterer

type MetricsRegisterer interface {
	MustRegister(reg metrics.RegistererGatherer)
}

type RegistererFuncs

type RegistererFuncs struct {
	metrics.RegistererGatherer
	RegisterCount     int
	RegisterFunc      func(registry prometheus.Collector) error
	MustRegisterCount int
	MustRegisterFunc  func(registry ...prometheus.Collector)
}

func (*RegistererFuncs) MustRegister

func (r *RegistererFuncs) MustRegister(registry ...prometheus.Collector)

func (*RegistererFuncs) Register

func (r *RegistererFuncs) Register(registry prometheus.Collector) error

Jump to

Keyboard shortcuts

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