prometheusmetrics

package module
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: May 7, 2019 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AsFloat64

func AsFloat64(value interface{}) float64

func PrometheusMetricKey

func PrometheusMetricKey(namespace, subsystem, metric, valueName string) string

func PrometheusMetricName

func PrometheusMetricName(metric, value string) string

func ReplaceUnsafeKeyCharacters

func ReplaceUnsafeKeyCharacters(key string) string

Types

type Exporter

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

func NewExporter

func NewExporter(
	namespace string,
	subsystem string,
	srcRegistry metrics.Registry,
	targetRegistry prometheus.Registerer,
	flushInterval time.Duration,
) *Exporter

func (*Exporter) ExportOnce

func (e *Exporter) ExportOnce()

func (*Exporter) Run

func (e *Exporter) Run()

Jump to

Keyboard shortcuts

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