prometheus

package
v0.0.162 Latest Latest
Warning

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

Go to latest
Published: May 5, 2023 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewCounter

func NewCounter(name, desc string, fields ...string) metrics.Counter

NewCounter creates and registers a strictly-increasing counter metric with Prometheus.

func NewDuration added in v0.0.112

func NewDuration(name, desc string, fields ...string) metrics.Duration

NewDuration returns a prometheus-implemented duration metric A GagueVec is used instead of a SummaryVec since it shows changes in duration over time more clearly

func NewFactory added in v0.0.112

func NewFactory() metrics.Factory

NewFactory constructs a new metrics factory

func NewInt64

func NewInt64(name, desc string, fields ...string) metrics.Int64

NewInt64 creates and registers an Int64 metric with Prometheus.

Types

type Valuer

type Valuer interface {
	metrics.Metric
	Values() map[string]float64
}

Valuer extends a metric to include a report on its values.

Jump to

Keyboard shortcuts

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