metrics

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Jan 14, 2021 License: LGPL-3.0, BSD-2-Clause-Views Imports: 7 Imported by: 0

Documentation

Overview

Go port of Coda Hale's Metrics library

<https://github.com/rcrowley/go-metrics>

Coda Hale's original work: <https://github.com/codahale/metrics>

Index

Constants

View Source
const (

	// MetricsEnabledFlag metrics enable flag
	MetricsEnabledFlag = "metrics"
)

Variables

This section is empty.

Functions

func EnableMetrics

func EnableMetrics()

EnableMetrics enable the metrics service

func Export

func Export()

func NewCounter

func NewCounter(name string) metrics.Counter

NewCounter create a new metrics Counter

func NewGauge

func NewGauge(name string) metrics.Gauge

NewGauge create a new metrics Gauge

func NewHistogramWithUniformSample

func NewHistogramWithUniformSample(name string, reservoirSize int) metrics.Histogram

NewHistogramWithUniformSample create a new metrics History with Uniform Sample algorithm.

func NewMeter

func NewMeter(name string) metrics.Meter

NewMeter create a new metrics Meter

func NewNilMeter

func NewNilMeter() metrics.Meter

func NewTimer

func NewTimer(name string) metrics.Timer

NewTimer create a new metrics Timer

func StartInfluxDB

func StartInfluxDB(hostname, database, username, password string, tags map[string]string)

Types

This section is empty.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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