metric

package
v0.0.3 Latest Latest
Warning

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

Go to latest
Published: Apr 14, 2024 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Buckets

func Buckets(buckets ...float64) promethuesOption

func ErrorLabels

func ErrorLabels(errorLabels ...string) promethuesOption

func Handler

func Handler() http.Handler

func Labels

func Labels(labels ...string) promethuesOption

func NewNop

func NewNop() *nopMetric

func RegisterMetric

func RegisterMetric(
	namespace string,
	subsystem string,
	name string,
	options ...promethuesOption,
) prometheusMetric

Types

type Metric

type Metric interface {
	IncrementTotal(labelValues ...string)
	IncrementError(errorLabelValues ...string)
	ObserveResponseTime(duration time.Duration, labelValues ...string)
}

Jump to

Keyboard shortcuts

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