testhelper

package
v0.30.0 Latest Latest
Warning

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

Go to latest
Published: Apr 30, 2024 License: AGPL-3.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ParsePrometheusMetrics

func ParsePrometheusMetrics(rdr io.Reader) (map[string]*promClient.MetricFamily, error)

ParsePrometheusMetrics parses the given Prometheus metrics and returns a map of metric name to metric family.

func StartOTelCollector

func StartOTelCollector(t testing.TB, metricsPort, configPath string, opts ...StartOTelCollectorOpt) (
	container *docker.Container,
	grpcEndpoint string,
)

Types

type StartOTelCollectorOpt

type StartOTelCollectorOpt func(*startOTelCollectorConf)

func WithStartCollectorPort

func WithStartCollectorPort(port int) StartOTelCollectorOpt

WithStartCollectorPort allows to specify the port on which the collector will be listening for gRPC requests.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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