metric_reporter

package module
v0.0.0-...-be858ba Latest Latest
Warning

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

Go to latest
Published: Nov 18, 2018 License: MIT Imports: 7 Imported by: 0

README

go-metric-drain

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Metric

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

func NewMetric

func NewMetric(name string, value float64, tags map[string]string) Metric

type MetricReporter

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

func NewMetricsReporter

func NewMetricsReporter(
	metricDrivers []metric_drivers.DriverInterface,
	resolution time.Duration,
	interval time.Duration, gcFreq time.Duration, prefix string, baseTags map[string]string) (mc *MetricReporter, errors chan error)

func (*MetricReporter) Metric

func (mr *MetricReporter) Metric(name string, val float64, tags map[string]string)

func (*MetricReporter) Send

func (mr *MetricReporter) Send(name string, val int64, tags map[string]string, args ...int)

backward comparability

func (*MetricReporter) Wait

func (mr *MetricReporter) Wait()

type MetricsCollection

type MetricsCollection struct {
	sync.Mutex
	// contains filtered or unexported fields
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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