crate

package
v0.0.0-...-d4c5c8b Latest Latest
Warning

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

Go to latest
Published: Mar 9, 2021 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

View Source
const TAB = '\t'

Variables

This section is empty.

Functions

func NewTarget

func NewTarget() targets.ImplementedTarget

Types

type Serializer

type Serializer struct{}

CrateDBSerializer writes a Point in a serialized form for CrateDB

func (*Serializer) Serialize

func (s *Serializer) Serialize(p *data.Point, w io.Writer) error

Serialize Point p to the given Writer w, so it can be loaded by the CrateDB loader. The format is TSV with one line per point, that contains the measurement type, tags with keys and values as a JSON object, timestamp, and metric values.

An example of a serialized point:

cpu\t{"hostname":"host_0","rack":"1"}\t1451606400000000000\t38\t0\t50\t41234

Jump to

Keyboard shortcuts

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