paths

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Aug 31, 2018 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

View Source
const (
	FormatCarbon            Format = 1
	FormatCarbonTags               = 2
	FormatCarbonOpenMetrics        = 3
)

Variables

This section is empty.

Functions

func InitPathsCache

func InitPathsCache(pathsCacheTTL time.Duration, pathsCachePurgeInterval time.Duration)

func MetricLabelsFromPath

func MetricLabelsFromPath(path string, prefix string) ([]*prompb.Label, error)

func MetricLabelsFromTags

func MetricLabelsFromTags(tags map[string]string, prefix string) ([]*prompb.Label, error)

func ToDatapoints

func ToDatapoints(s *model.Sample, format Format, prefix string, rules []*config.Rule, templateData map[string]interface{}) ([]string, error)

Types

type Format

type Format int

Jump to

Keyboard shortcuts

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