telegraf

package
v0.0.6 Latest Latest
Warning

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

Go to latest
Published: May 13, 2021 License: Apache-2.0 Imports: 7 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 added in v0.0.2

type ConverterOption func(*Converter)

ConverterOption ...

func WithFloat64Numbers added in v0.0.5

func WithFloat64Numbers(enabled bool) ConverterOption

WithFloat64Numbers will convert all numbers met to float64 type.

func WithUseLabelsColumn added in v0.0.2

func WithUseLabelsColumn(enabled bool) ConverterOption

WithUseLabelsColumn ...

Jump to

Keyboard shortcuts

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