MCPcopy
hub / github.com/prometheus/node_exporter / init

Function init

collector/netdev_common.go:49–51  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

47type netDevStats map[string]map[string]uint64
48
49func init() {
50 registerCollector("netdev", defaultEnabled, NewNetDevCollector)
51}
52
53// NewNetDevCollector returns a new Collector exposing network device stats.
54func NewNetDevCollector(logger *slog.Logger) (Collector, error) {

Callers

nothing calls this directly

Calls 1

registerCollectorFunction · 0.85

Tested by

no test coverage detected