metrics

package
v0.0.0-...-1794c56 Latest Latest
Warning

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

Go to latest
Published: Oct 4, 2017 License: MPL-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Scope

type Scope interface {
	NewScope(scopes ...string) Scope

	Inc(stat string, value int64)
	Gauge(stat string, value int64)
	GaugeDelta(stat string, value int64)
	Timing(stat string, delta int64)
	TimingDuration(stat string, delta time.Duration)
	SetInt(stat string, value int64)

	MustRegister(...prometheus.Collector)
}

Scope is a stats collector that will prefix the name the stats it collects.

func NewNoopScope

func NewNoopScope() Scope

NewNoopScope returns a Scope that won't collect anything

func NewPromScope

func NewPromScope(registerer prometheus.Registerer, scopes ...string) Scope

NewPromScope returns a Scope that sends data to Prometheus

Directories

Path Synopsis
Package mock_metrics is a generated GoMock package.
Package mock_metrics is a generated GoMock package.

Jump to

Keyboard shortcuts

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