influx2otel

package module
v0.5.12 Latest Latest
Warning

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

Go to latest
Published: May 26, 2024 License: MIT Imports: 12 Imported by: 3

README

InfluxDB Line Protocol to OpenTelemetry Converter

Go Reference

This package converts InfluxDB line protocol metrics to OpenTelemetry proto messages.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type LineProtocolToOtelMetrics

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

func NewLineProtocolToOtelMetrics

func NewLineProtocolToOtelMetrics(logger common.Logger) (*LineProtocolToOtelMetrics, error)

func (*LineProtocolToOtelMetrics) NewBatch

func (c *LineProtocolToOtelMetrics) NewBatch() *MetricsBatch

type MetricsBatch

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

func (*MetricsBatch) AddPoint

func (b *MetricsBatch) AddPoint(measurement string, tags map[string]string, fields map[string]interface{}, ts time.Time, vType common.InfluxMetricValueType) error

measurement - metric name

func (*MetricsBatch) GetMetrics added in v0.2.0

func (b *MetricsBatch) GetMetrics() pmetric.Metrics

Jump to

Keyboard shortcuts

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