prometheus

package
v0.2.1-0...-b772245 Latest Latest
Warning

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

Go to latest
Published: Aug 14, 2019 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewGatherer

func NewGatherer(cfg ConfigGatherer) metric.Gatherer

NewGatherer returns a new metric gatherer for prometheus backends.

Types

type ConfigGatherer

type ConfigGatherer struct {
	// Client is the prometheus API client.
	Client promv1.API
	// FilterSpecialLabels will return the metrics with the special labels filtered.
	// The special labels start with `__`, examples: `__name__`, `__scheme__`.
	FilterSpecialLabels bool
}

ConfigGatherer is the configuration of the Prometheus gatherer.

Jump to

Keyboard shortcuts

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