goMetricsExporter

package
v1.28.1 Latest Latest
Warning

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

Go to latest
Published: Nov 30, 2017 License: MIT Imports: 3 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type GoMetricsExporter

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

GoMetricsExporter allows an rcrowley/go-metrics registry to be periodically exported to the Cherami metrics system

func NewGoMetricsExporter

func NewGoMetricsExporter(
	m m.Client,
	scope int,
	metricNameToMetric map[string]int,
) (*GoMetricsExporter, gometrics.Registry)

NewGoMetricsExporter starts the exporter loop to export go-metrics to the Cherami metrics system and returns the go-metrics registry that should be used

func (*GoMetricsExporter) Run

func (r *GoMetricsExporter) Run()

Run runs the exporter. It blocks until Stop() is called, so it should probably be run in a go-routine

func (*GoMetricsExporter) Stop

func (r *GoMetricsExporter) Stop()

Stop stops the exporter

Jump to

Keyboard shortcuts

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