metric

package
v0.0.0-...-8d5bda4 Latest Latest
Warning

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

Go to latest
Published: Dec 14, 2021 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Handler

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

Handler represents a processor that can handle metrics from Istio and transmit them to New Relic.

func BuildHandler

func BuildHandler(params *config.Params, h *telemetry.Harvester) (*Handler, error)

BuildHandler returns a metric Handler with valid configuration.

func (*Handler) HandleMetric

func (h *Handler) HandleMetric(_ context.Context, msgs []*metric.InstanceMsg) error

HandleMetric transforms metric template instances into New Relic metrics and sends them to New Relic.

Jump to

Keyboard shortcuts

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