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

Function init

collector/netclass_linux.go:47–49  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

45}
46
47func init() {
48 registerCollector("netclass", defaultEnabled, NewNetClassCollector)
49}
50
51// NewNetClassCollector returns a new Collector exposing network class stats.
52func NewNetClassCollector(logger *slog.Logger) (Collector, error) {

Callers

nothing calls this directly

Calls 1

registerCollectorFunction · 0.85

Tested by

no test coverage detected