github.com/demonoid81/moby@v0.0.0-20200517203328-62dd8e17c460/daemon/events/metrics.go (about) 1 package events // import "github.com/demonoid81/moby/daemon/events" 2 3 import metrics "github.com/docker/go-metrics" 4 5 var ( 6 eventsCounter metrics.Counter 7 eventSubscribers metrics.Gauge 8 ) 9 10 func init() { 11 ns := metrics.NewNamespace("engine", "daemon", nil) 12 eventsCounter = ns.NewCounter("events", "The number of events logged") 13 eventSubscribers = ns.NewGauge("events_subscribers", "The number of current subscribers to events", metrics.Total) 14 metrics.Register(ns) 15 }