metrics

package
v0.106.0 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MetricReporter

type MetricReporter struct {
	// contains filtered or unexported fields
}

MetricReporter is a metric reporter that collects Agent metrics and sends them to an OTLP/HTTP destination.

func NewMetricReporter

func NewMetricReporter(logger logr.Logger, dest *protobufs.TelemetryConnectionSettings, agentType string, agentVersion string, instanceId uuid.UUID) (*MetricReporter, error)

NewMetricReporter creates an OTLP/HTTP client to the destination address supplied by the server. TODO: do more validation on the endpoint, allow for gRPC. TODO: set global provider and add more metrics to be reported.

func (*MetricReporter) Shutdown

func (reporter *MetricReporter) Shutdown()

Jump to

Keyboard shortcuts

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