metrics

package
v0.12.0 Latest Latest
Warning

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

Go to latest
Published: Feb 14, 2020 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Overview

Package metrics //

Index

Constants

View Source
const (
	CounterPrefix = "counter"
	GaugePrefix   = "gauge"
	TimerPrefix   = "timer"
)

CounterPrefix stores the prefix for Counter

Variables

This section is empty.

Functions

This section is empty.

Types

type Registry

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

Registry initializes expvar metrics registry

func NewRegistry

func NewRegistry() *Registry

NewRegistry initializes metrics registry

func (*Registry) GetCounter

func (m *Registry) GetCounter(key string) go_kit_metrics.Counter

GetCounter gets go-kit expvar Counter

func (*Registry) GetGauge

func (m *Registry) GetGauge(key string) go_kit_metrics.Gauge

GetGauge gets go-kit expvar Gauge

func (*Registry) GetHistogram added in v0.11.0

func (m *Registry) GetHistogram(key string) go_kit_metrics.Histogram

GetHistogram gets go-kit Histogram

func (*Registry) NewTimer added in v0.11.0

func (m *Registry) NewTimer(key string) *Timer

NewTimer constructs Timer

type Timer added in v0.11.0

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

Timer is the collection of some timers

func (*Timer) Update added in v0.11.0

func (t *Timer) Update(delta float64)

Update timer components

Jump to

Keyboard shortcuts

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