github.com/rish1988/moby@v25.0.2+incompatible/daemon/images/locals.go (about) 1 package images // import "github.com/docker/docker/daemon/images" 2 3 import ( 4 metrics "github.com/docker/go-metrics" 5 ) 6 7 var imageActions metrics.LabeledTimer 8 9 func init() { 10 ns := metrics.NewNamespace("engine", "daemon", nil) 11 imageActions = ns.NewLabeledTimer("image_actions", "The number of seconds it takes to process each image action", "action") 12 // TODO: is it OK to register a namespace with the same name? Or does this 13 // need to be exported from somewhere? 14 metrics.Register(ns) 15 }