convert

package
v0.1.0-alpha.3 Latest Latest
Warning

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

Go to latest
Published: Aug 24, 2016 License: Apache-2.0 Imports: 8 Imported by: 12

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ESEscape

func ESEscape(field string) string

ESEscape escapes out "." characters which are illegal in fieldnames in es 2.x This turns existing "_" characters into double "__" characters, and then turns "." characters into "_" characters

func KeyToMetric

func KeyToMetric(key string) (*bus.Metric, error)

KeyToMetric produces a Vulcan metric for a consistent key.

func MetricToKey

func MetricToKey(m bus.Metric) (string, error)

MetricToKey creates a consistent key for a metric. It piggy-backs off the property that golang json package sorts map keys while marshalling https://golang.org/src/encoding/json/encode.go#L615

func PromTextToSG

func PromTextToSG(in io.Reader) (bus.SampleGroup, error)

PromTextToSG reads prometheus metrics in text exposition format and produces a SampleGroup

Types

This section is empty.

Jump to

Keyboard shortcuts

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