metrics

package
Version: v1.6.3 Latest Latest
Warning

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

Go to latest
Published: Jul 1, 2021 License: GPL-3.0 Imports: 3 Imported by: 88

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ResetMaxGauges added in v1.6.1

func ResetMaxGauges()

ResetMaxGauges sets the value of registered gauges to 0.

Types

type HybridTimer added in v1.6.1

type HybridTimer interface {
	Update(d time.Duration)
}

HybridTimer holds both metrics.Meter and metrics.Gauge to track meter-wise value and temporal maximum value during the certain period.

func NewRegisteredHybridTimer added in v1.6.1

func NewRegisteredHybridTimer(name string, r metrics.Registry) HybridTimer

NewRegisteredHybridTimer constructs and registers a new HybridTimer. `name` is used by meter and `name`+"/maxgauge" is used by gauge.

Source Files

Directories

Path Synopsis
Package exp hooks go-metrics into expvar on any metrics request, loads all vars from the registry into expvar, and executes regular expvar handler.
Package exp hooks go-metrics into expvar on any metrics request, loads all vars from the registry into expvar, and executes regular expvar handler.
Package influxdb implements go-metrics library which will post to the influxDB.
Package influxdb implements go-metrics library which will post to the influxDB.
Package librato implements go-metrics library which will post to the Librato.
Package librato implements go-metrics library which will post to the Librato.
Package prometheusmetrics implements go-metrics library which will post to the prometheus client registry.
Package prometheusmetrics implements go-metrics library which will post to the prometheus client registry.

Jump to

Keyboard shortcuts

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