dynatrace

package module
v0.0.0-...-6b09333 Latest Latest
Warning

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

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

Documentation

Index

Constants

View Source
const (
	DefaultDynatraceURL = "http://127.0.0.1:14499/metrics/ingest"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Exporter

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

Exporter forwards metrics to a DataDog agent

func NewExporter

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

NewExporter exports to a Dynatrace MINT API

func (*Exporter) Close

func (e *Exporter) Close() error

func (*Exporter) Export

func (e *Exporter) Export(ctx context.Context, cs export.CheckpointSet) error

func (*Exporter) ExportKindFor

ExportKindFor returns export.DeltaExporter for statsd-derived exporters

type Options

type Options struct {
	URL      string
	APIToken string
	Prefix   string
	Tags     []string

	MetricNameFormatter func(namespace, name string) string
}

Jump to

Keyboard shortcuts

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