a654cbfd2f
The pattern of parsing bool was repeated across multiple files and caused the duplication of the invalidFilter error helper. Signed-off-by: Paweł Gronowski <pawel.gronowski@docker.com>
15 lines
490 B
Go
15 lines
490 B
Go
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)
|
|
}
|