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
Click to show internal directories.
Click to hide internal directories.