metrics

package
v2.5.0+incompatible Latest Latest
Warning

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

Go to latest
Published: Apr 12, 2019 License: MIT Imports: 8 Imported by: 15

Documentation

Overview

nolint

nolint

nolint

nolint

nolint

nolint

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ConfigureCheckerMetrics

func ConfigureCheckerMetrics(prefix string, remoteEnabled bool) *graphite.CheckerMetrics

ConfigureCheckerMetrics is checker metrics configurator

func ConfigureFilterMetrics

func ConfigureFilterMetrics(prefix string) *graphite.FilterMetrics

ConfigureFilterMetrics initialize graphite metrics

func ConfigureIndexMetrics

func ConfigureIndexMetrics(prefix string) *graphite.IndexMetrics

ConfigureIndexMetrics in full-text search index metrics configurator

func ConfigureNotifierMetrics

func ConfigureNotifierMetrics(prefix string) *graphite.NotifierMetrics

ConfigureNotifierMetrics is notifier metrics configurator

func Init

func Init(config graphite.Config, serviceName string) error

Init is initializer for notifier graphite metrics worker based on go-metrics and go-metrics-graphite

Types

type Counter

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

Counter is facade for go-metrics package counter interface

func (*Counter) Clear

func (counter *Counter) Clear()

func (*Counter) Count

func (counter *Counter) Count() int64

func (*Counter) Dec

func (counter *Counter) Dec(val int64)

func (*Counter) Inc

func (counter *Counter) Inc(val int64)

type ExpDecayHistogram

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

ExpDecayHistogram is facade for go-metrics package Histogram struct This histogram uses Exponentially Decaying Reservoir For more description see http://metrics.dropwizard.io/4.0.0/manual/core.html#histograms

func (*ExpDecayHistogram) Clear

func (histogram *ExpDecayHistogram) Clear()

func (*ExpDecayHistogram) Count

func (histogram *ExpDecayHistogram) Count() int64

func (*ExpDecayHistogram) Max

func (histogram *ExpDecayHistogram) Max() int64

func (*ExpDecayHistogram) Mean

func (histogram *ExpDecayHistogram) Mean() float64

func (*ExpDecayHistogram) Min

func (histogram *ExpDecayHistogram) Min() int64

func (*ExpDecayHistogram) Percentile

func (histogram *ExpDecayHistogram) Percentile(p float64) float64

func (*ExpDecayHistogram) Percentiles

func (histogram *ExpDecayHistogram) Percentiles(p []float64) []float64

func (*ExpDecayHistogram) StdDev

func (histogram *ExpDecayHistogram) StdDev() float64

func (*ExpDecayHistogram) Sum

func (histogram *ExpDecayHistogram) Sum() int64

func (*ExpDecayHistogram) Update

func (histogram *ExpDecayHistogram) Update(v int64)

func (*ExpDecayHistogram) Variance

func (histogram *ExpDecayHistogram) Variance() float64

type Gauge

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

Gauge is facade for go-metrics package Gauge struct

func (*Gauge) Update

func (gauge *Gauge) Update(v int64)

func (*Gauge) Value

func (gauge *Gauge) Value() int64

type Meter

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

Meter is facade for go-metrics package Meter struct

func (*Meter) Count

func (metric *Meter) Count() int64

func (*Meter) Mark

func (metric *Meter) Mark(value int64)

func (*Meter) Rate1

func (metric *Meter) Rate1() float64

func (*Meter) Rate15

func (metric *Meter) Rate15() float64

func (*Meter) Rate5

func (metric *Meter) Rate5() float64

func (*Meter) RateMean

func (metric *Meter) RateMean() float64

type MeterMap

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

MeterMap is realization of metrics map of type Meter

func (*MeterMap) AddMetric

func (metricsMap *MeterMap) AddMetric(name, path string)

func (*MeterMap) GetMetric

func (metricsMap *MeterMap) GetMetric(name string) (graphite.Meter, bool)

type Timer

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

Timer is facade for go-metrics package Timer interface

func (*Timer) Count

func (timer *Timer) Count() int64

func (*Timer) Max

func (timer *Timer) Max() int64

func (*Timer) Mean

func (timer *Timer) Mean() float64

func (*Timer) Min

func (timer *Timer) Min() int64

func (*Timer) Percentile

func (timer *Timer) Percentile(p float64) float64

func (*Timer) Percentiles

func (timer *Timer) Percentiles(p []float64) []float64

func (*Timer) Rate1

func (timer *Timer) Rate1() float64

func (*Timer) Rate15

func (timer *Timer) Rate15() float64

func (*Timer) Rate5

func (timer *Timer) Rate5() float64

func (*Timer) RateMean

func (timer *Timer) RateMean() float64

func (*Timer) StdDev

func (timer *Timer) StdDev() float64

func (*Timer) Sum

func (timer *Timer) Sum() int64

func (*Timer) Time

func (timer *Timer) Time(f func())

func (*Timer) Update

func (timer *Timer) Update(time time.Duration)

func (*Timer) UpdateSince

func (timer *Timer) UpdateSince(time time.Time)

func (*Timer) Variance

func (timer *Timer) Variance() float64

Jump to

Keyboard shortcuts

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