2018-02-05 16:05:59 -05:00
|
|
|
package events // import "github.com/docker/docker/daemon/events"
|
2016-07-20 19:11:28 -04:00
|
|
|
|
2019-08-05 10:37:47 -04:00
|
|
|
import metrics "github.com/docker/go-metrics"
|
2016-07-20 19:11:28 -04:00
|
|
|
|
|
|
|
var (
|
|
|
|
eventsCounter metrics.Counter
|
|
|
|
eventSubscribers metrics.Gauge
|
|
|
|
)
|
|
|
|
|
|
|
|
func init() {
|
|
|
|
ns := metrics.NewNamespace("engine", "daemon", nil)
|
|
|
|
eventsCounter = ns.NewCounter("events", "The number of events logged")
|
|
|
|
eventSubscribers = ns.NewGauge("events_subscribers", "The number of current subscribers to events", metrics.Total)
|
|
|
|
metrics.Register(ns)
|
|
|
|
}
|