locals.go 490 B

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