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