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 ulid.ULID) (*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()
Click to show internal directories.
Click to hide internal directories.