metrics

package
v0.0.0-...-f999dd2 Latest Latest
Warning

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

Go to latest
Published: Nov 28, 2018 License: MIT Imports: 3 Imported by: 1

Documentation

Overview

Package metrics provides utilities for capturing counters gauges and histograms from various services written with bingo

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddCounter

func AddCounter(key string)

AddCounter increments a counter by 1

func AddGauge

func AddGauge(key string, v int64)

AddGauge updates the gauge with the value v

func Init

func Init()

Init initializes the metrics lib . It registers the runtime memory stats TODO: make it configurable to accept metrics publishers other than exp

func UpdateHistogram

func UpdateHistogram(name string, v int64)

UpdateHistogram registers a new value for the histogram

func UpdateTimer

func UpdateTimer(name string, t time.Duration)

UpdateTimer registers a new value for a timer

func UpdateTimerSince

func UpdateTimerSince(name string, since time.Time)

UpdateTimerSince registers a new value for a timer

Types

This section is empty.

Jump to

Keyboard shortcuts

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