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 ¶
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
Click to show internal directories.
Click to hide internal directories.