metrics

package
v3.11.0+incompatible Latest Latest
Warning

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

Go to latest
Published: Jul 13, 2018 License: MIT Imports: 3 Imported by: 6

Documentation

Overview

Package metrics provides easy methods to send metrics

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Gauge

func Gauge(name string, value int64)

Gauge sets a gauge metric to a given value

func Mark

func Mark(name string)

Mark increases the meter metric with the given name by 1

func ReportMemstatsMetrics added in v1.3.0

func ReportMemstatsMetrics()

ReportMemstatsMetrics will send runtime Memstats metrics every 10 seconds, and will block forever.

func TimeDuration

func TimeDuration(name string, duration time.Duration)

TimeDuration increases the timer metric with the given name by the given duration

func TimeSince

func TimeSince(name string, since time.Time)

TimeSince increases the timer metric with the given name by the time since the given time

Types

This section is empty.

Jump to

Keyboard shortcuts

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