metrics

package
v0.9.0 Latest Latest
Warning

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

Go to latest
Published: Feb 28, 2023 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	Namespace = "livepeer"
	Subsystem = "task_runner"
	Factory   = promauto.With(prometheus.DefaultRegisterer)
)
View Source
var (
	Version = Factory.NewGaugeVec(
		prometheus.GaugeOpts{
			Name: FQName("version"),
			Help: "Current Git SHA / Tag that's running. Incremented once on app startup.",
		},
		[]string{"app", "version"},
	)
)

Functions

func FQName

func FQName(name string) string

func ObservedHandler

func ObservedHandler(apiName string, handler http.Handler) http.Handler

func ObservedHandlerFunc

func ObservedHandlerFunc(apiName string, handler http.HandlerFunc) http.Handler

Types

This section is empty.

Jump to

Keyboard shortcuts

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