metric

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Apr 29, 2018 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Collect

func Collect(key string, v float64, labels ...string)

Collect a keyed value with labels

func Setup

func Setup(m Metric) error

Setup accepts a implementation of the metric interface

Types

type Metric

type Metric interface {
	Collect(key string, v float64, labels ...string)
}

Metric defines a interface that has to be implemented in order to be used in this package

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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