metrics

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Apr 19, 2021 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddLabels

func AddLabels(metricsFamilies []*dto.MetricFamily, labels []*dto.LabelPair)

func Decode

func Decode(data []byte) ([]*dto.MetricFamily, error)

func Encode

func Encode(metricsFamilies []*dto.MetricFamily, format expfmt.Format) ([]byte, error)

func Merge

func Merge(metricsFamiliesA []*dto.MetricFamily, metricsFamiliesB *[]*dto.MetricFamily)

Merge merges the metrics in a into b

func Rewrite

func Rewrite(ctx context.Context, metricsFamilies []*dto.MetricFamily, targetNamespace string, vClient client.Client) ([]*dto.MetricFamily, error)

Types

This section is empty.

Jump to

Keyboard shortcuts

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