exporter

package
v0.0.0-...-7735815 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Exporter

type Exporter struct {
	ListenAddress string
	TelemetryPath string
	Collectors    []prometheus.Collector
	// contains filtered or unexported fields
}

func (*Exporter) Listen

func (e *Exporter) Listen() (err error)

Listen initiates the HTTP server using the configurations provided via ExporterConfig.

This is a blocking method - make sure you either make use of goroutines to not block if needed.

func (*Exporter) Stop

func (e *Exporter) Stop() (err error)

Stop closes the tcp listener (if exists).

Jump to

Keyboard shortcuts

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