core

package
v2.5.2+incompatible Latest Latest
Warning

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

Go to latest
Published: Jun 21, 2019 License: BSD-3-Clause Imports: 4 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (

	// Format is the collector ouptut format for Noderig
	Format = "sensition"

	// Separator pattern for each classnames
	Separator = "."

	// DefaultLabels add default labels
	DefaultLabels = ""
)

Functions

func GetSeriesOutput

func GetSeriesOutput(tick int64, class string, labels string, value interface{}) string

GetSeriesOutput series output format rendering

func GetSeriesOutputAttributes

func GetSeriesOutputAttributes(tick int64, class string, labels string, attributes string, value interface{}) string

GetSeriesOutputAttributes series output format rendering with Attributes

func ToLabels

func ToLabels(key string, value interface{}) string

ToLabels ensure the correct output format for a key/value set for series labels

Types

type Collector

type Collector interface {
	Metrics() *bytes.Buffer
}

Collector interface

Jump to

Keyboard shortcuts

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