stats

package
v1.7.1 Latest Latest
Warning

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

Go to latest
Published: Mar 24, 2023 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.T, 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.

Jump to

Keyboard shortcuts

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