metrics

package
v0.19.0 Latest Latest
Warning

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

Go to latest
Published: Jan 26, 2021 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// Gauge is the Datadog Gauge metric type
	Gauge string = "gauge"
	Count string = "count"
)

Variables

This section is empty.

Functions

func DefaultMetrics

func DefaultMetrics(exporterType string, timestamp uint64) []datadog.Metric

DefaultMetrics creates built-in metrics to report that an exporter is running

func NewCount added in v0.18.0

func NewCount(name string, ts uint64, value float64, tags []string) datadog.Metric

NewCount creates a new Datadog count metric given a name, a Unix nanoseconds timestamp a value and a slice of tags

func NewGauge

func NewGauge(name string, ts uint64, value float64, tags []string) datadog.Metric

NewGauge creates a new Datadog Gauge metric given a name, a Unix nanoseconds timestamp a value and a slice of tags

func ProcessMetrics

func ProcessMetrics(ms []datadog.Metric, logger *zap.Logger, cfg *config.Config)

ProcessMetrics adds the hostname to the metric and prefixes it with the "otel" namespace as the Datadog backend expects

Types

This section is empty.

Jump to

Keyboard shortcuts

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