prom

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Jul 6, 2022 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type PromData

type PromData struct {
	Name  string
	Value float64
	Tags  map[string]interface{}
}

func (*PromData) AddTagLabels

func (d *PromData) AddTagLabels(vecTags tagVec)

func (*PromData) GetTagValues

func (d *PromData) GetTagValues(vecTags tagVec) []string

type PromFormat

type PromFormat struct {
	logger.ContextL
	// contains filtered or unexported fields
}

func NewFormat

func NewFormat(log logger.Underlying, compression kt.Compression) (*PromFormat, error)

func (*PromFormat) From

func (f *PromFormat) From(raw *kt.Output) ([]map[string]interface{}, error)

Not supported.

func (*PromFormat) Rollup

func (f *PromFormat) Rollup(rolls []rollup.Rollup) (*kt.Output, error)

func (*PromFormat) To

func (f *PromFormat) To(msgs []*kt.JCHF, serBuf []byte) (*kt.Output, error)

Jump to

Keyboard shortcuts

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