2015-11-30 23:34:01 +00:00
|
|
|
package containerd
|
|
|
|
|
|
|
|
import "github.com/rcrowley/go-metrics"
|
|
|
|
|
|
|
|
var (
|
|
|
|
ContainerStartTimer = metrics.NewTimer()
|
|
|
|
ContainersCounter = metrics.NewCounter()
|
2015-12-01 18:55:13 +00:00
|
|
|
EventsCounter = metrics.NewCounter()
|
2015-11-30 23:34:01 +00:00
|
|
|
)
|
|
|
|
|
|
|
|
func Metrics() map[string]interface{} {
|
|
|
|
return map[string]interface{}{
|
|
|
|
"container-start-time": ContainerStartTimer,
|
|
|
|
"containers": ContainersCounter,
|
2015-12-01 18:55:13 +00:00
|
|
|
"events": EventsCounter,
|
2015-11-30 23:34:01 +00:00
|
|
|
}
|
|
|
|
}
|