metrics

package
v0.11.0 Latest Latest
Warning

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

Go to latest
Published: Mar 12, 2024 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	Namespace = "livepeer"
	Subsystem = "task_runner"
	// We use catalyst-api as a library which uses prometheus lib and default
	// registry. Avoid metric conflicts by using a custom registry.
	Registry = prometheus.NewRegistry()
	Factory  = promauto.With(Registry)
)
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

func ScrapeHandler added in v0.10.0

func ScrapeHandler() 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