2018-02-05 21:05:59 +00:00
|
|
|
package events // import "github.com/docker/docker/daemon/events"
|
2016-07-20 23:11:28 +00:00
|
|
|
|
2019-08-05 14:37:47 +00:00
|
|
|
import metrics "github.com/docker/go-metrics"
|
2016-07-20 23:11:28 +00: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)
|
|
|
|
}
|