metrics

package
v2.2.0+incompatible Latest Latest
Warning

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

Go to latest
Published: Mar 15, 2017 License: BSD-2-Clause-Views Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MetricStorage

type MetricStorage struct {
	GraphiteConnectionString string
	GraphitePrefix           string
	Logger                   frontreport.Logger
	// contains filtered or unexported fields
}

MetricStorage is a Graphite implementation of frontreport.MetricStorage interface

func (*MetricStorage) RegisterCounter

func (ms *MetricStorage) RegisterCounter(name string) frontreport.MetricCounter

RegisterCounter creates a counter

func (*MetricStorage) RegisterHistogram

func (ms *MetricStorage) RegisterHistogram(name string) frontreport.MetricHistogram

RegisterHistogram creates a uniform-sampled histogram of integers

func (*MetricStorage) Start

func (ms *MetricStorage) Start() error

Start initializes Graphite reporter

func (*MetricStorage) Stop

func (ms *MetricStorage) Stop() error

Stop does nothing - there is no way to gracefully flush Graphite reporter

Jump to

Keyboard shortcuts

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