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 ObservedHandlerFunc ¶
func ObservedHandlerFunc(apiName string, handler http.HandlerFunc) http.Handler
func ScrapeHandler ¶ added in v0.10.0
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.