metrics

package
v0.0.0-...-cb1433f Latest Latest
Warning

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

Go to latest
Published: Feb 25, 2021 License: MIT Imports: 3 Imported by: 0

Documentation

Overview

Package metrics provides easy methods to send metrics

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Counter

func Counter(name string, value int64)

Counter returns an existing Counter or constructs and registers a new StandardCounter.

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

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