dynatrace

package
v0.2.1-beta Latest Latest
Warning

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

Go to latest
Published: Oct 12, 2022 License: Apache-2.0 Imports: 20 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewDimension

func NewDimension(key, value string) dimensions.Dimension

Create a new dimension for use in the DefaultDimensions option

Types

type Exporter

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

Exporter forwards metrics to a Dynatrace agent

func NewExporter

func NewExporter(opts Options) (*Exporter, error)

NewExporter creates an exporter for the Dynatrace Metrics v2 API

func (*Exporter) Close

func (e *Exporter) Close() error

Close the exporter

func (*Exporter) Export

Export a batch of metrics

func (*Exporter) TemporalityFor

func (e *Exporter) TemporalityFor(desc *sdkapi.Descriptor, kind aggregation.Kind) aggregation.Temporality

TemporalityFor returns delta for histograms and monotonic counters, else cumulative

type Options

type Options struct {
	URL                                string
	APIToken                           string
	Prefix                             string
	DefaultDimensions                  []dimensions.Dimension
	Logger                             *zap.Logger
	DisableDynatraceMetadataEnrichment bool

	MetricNameFormatter func(namespace, name string) string
}

Options contains options for configuring the exporter.

Jump to

Keyboard shortcuts

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