Documentation
¶
Index ¶
- Constants
- func DefaultMetrics(exporterType string, hostname string, timestamp uint64, ...) []datadog.Metric
- func NewCount(name string, ts uint64, value float64, tags []string) datadog.Metric
- func NewGauge(name string, ts uint64, value float64, tags []string) datadog.Metric
- func ProcessMetrics(ms []datadog.Metric, cfg *config.Config)
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 ¶
NewCount creates a new Datadog count metric given a name, a Unix nanoseconds timestamp a value and a slice of tags
func NewGauge ¶
NewGauge creates a new Datadog Gauge metric given a name, a Unix nanoseconds timestamp a value and a slice of tags
func ProcessMetrics ¶
ProcessMetrics adds the hostname to the metric and prefixes it with the "otel" namespace as the Datadog backend expects
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.