exporter

package
v0.0.0-...-8c24509 Latest Latest
Warning

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

Go to latest
Published: Jan 10, 2019 License: BSD-3-Clause Imports: 22 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func MustExportMetrics

func MustExportMetrics(listenAddr, handlerEndpoint string, listenPort uint16, conf config.RextRoot) (srv *http.Server)

MustExportMetrics will read the config from mainConfigFile if any or use a default one.

Types

type MetricsCollector

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

MetricsCollector has the metrics to be exposed

func (*MetricsCollector) Collect

func (collector *MetricsCollector) Collect(ch chan<- prometheus.Metric)

Collect update all the descriptors is values

func (*MetricsCollector) Describe

func (collector *MetricsCollector) Describe(ch chan<- *prometheus.Desc)

Describe writes all the descriptors to the prometheus desc channel.

Jump to

Keyboard shortcuts

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