metrics

package
v0.0.0-...-7d43bac Latest Latest
Warning

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

Go to latest
Published: Dec 19, 2017 License: MIT Imports: 2 Imported by: 0

Documentation

Overview

Package metrics provides support for metrics collecting mechanism.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Counter

type Counter interface {
	Inc()
	// contains filtered or unexported methods
}

Counter is a cumulative metric that represents a single numerical value that only ever goes up.

type Exposer

type Exposer interface {
	CreateGauge(name, description string) Gauge
	CreateCounter(name, description string) Counter
	CreateHistogram(name, description string, buckets []float64) Histogram
	CreateSummary(name, description string, objectives map[float64]float64) Summary

	Expose()
	ExposeHandler() http.Handler

	system.Disposer
}

Exposer represents metrics exposer mechanism.

type Gauge

type Gauge interface {
	Set(value float64)
	// contains filtered or unexported methods
}

Gauge is a metric that represents a single numerical value that can arbitrarily go up and down.

type Histogram

type Histogram interface {
	Observe(value float64)
	// contains filtered or unexported methods
}

Histogram samples observations (usually things like request durations or response sizes) and counts them in configurable buckets. It also provides a sum of all observed values.

type Summary

type Summary interface {
	Observe(value float64)
	// contains filtered or unexported methods
}

Summary samples observations (usually things like request durations and response sizes).

Directories

Path Synopsis
Package prometheus provides support for Prometheus metrics collector.
Package prometheus provides support for Prometheus metrics collector.

Jump to

Keyboard shortcuts

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