exporter

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Oct 5, 2021 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MetricsExporter

type MetricsExporter struct {
	// contains filtered or unexported fields
}

MetricsExporter exports profiling metrics via Prometheus. It is safe for concurrent use.

func NewExporter

NewExporter validates configuration and creates a new prometheus MetricsExporter.

func (MetricsExporter) Observe

func (e MetricsExporter) Observe(k *segment.Key, t *tree.Tree, multiplier float64)

Observe ingested segment key and tree.

The call evaluates export rules against the key k and creates prometheus counters for new time series, if required. Every export rule has an expression to evaluate a dimension key, and a filter, which allow to retrieve metric value for particular nodes.

Jump to

Keyboard shortcuts

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