metrics

package
v0.0.0-...-c7e85b4 Latest Latest
Warning

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

Go to latest
Published: Dec 6, 2019 License: Apache-2.0 Imports: 6 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 interface {
	Export() error
}

type MetricsPublisher

type MetricsPublisher struct {
	BindAddress      string
	Path             string
	Port             string
	ExportInterval   time.Duration
	MetricsExporters []MetricsExporter
}

func NewMetricsPublisher

func NewMetricsPublisher(bindAddr string, path string, port string, publishInterval time.Duration) *MetricsPublisher

func (*MetricsPublisher) Export

func (mp *MetricsPublisher) Export()

func (*MetricsPublisher) Register

func (mp *MetricsPublisher) Register(metricsExporter MetricsExporter)

func (*MetricsPublisher) Run

func (mp *MetricsPublisher) Run(stopc <-chan struct{})

Jump to

Keyboard shortcuts

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