telegraf

package
v0.0.0-...-fb7f86c Latest Latest
Warning

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

Go to latest
Published: Aug 18, 2023 License: AGPL-3.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Converter

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

Converter converts Telegraf metrics to Grafana frames.

func NewConverter

func NewConverter(opts ...ConverterOption) *Converter

NewConverter creates new Converter from Influx/Telegraf format to Grafana Data Frames. This converter generates one frame for each input metric name and time combination.

func (*Converter) Convert

func (c *Converter) Convert(body []byte) ([]telemetry.FrameWrapper, error)

Convert metrics.

type ConverterOption

type ConverterOption func(*Converter)

ConverterOption ...

func WithFloat64Numbers

func WithFloat64Numbers(enabled bool) ConverterOption

WithFloat64Numbers will convert all numbers met to float64 type.

func WithUseLabelsColumn

func WithUseLabelsColumn(enabled bool) ConverterOption

WithUseLabelsColumn ...

Jump to

Keyboard shortcuts

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