metrics

package
v0.31.0 Latest Latest
Warning

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

Go to latest
Published: Jul 29, 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 is the Datadog Count metric type
	Count string = "count"
)

Variables

This section is empty.

Functions

func DefaultMetrics

func DefaultMetrics(exporterType string, hostname string, timestamp uint64, buildInfo component.BuildInfo) []datadog.Metric

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

func NewCount

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, 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