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

Function init

collector/vmstat_linux.go:44–46  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

42}
43
44func init() {
45 registerCollector("vmstat", defaultEnabled, NewvmStatCollector)
46}
47
48// NewvmStatCollector returns a new Collector exposing vmstat stats.
49func NewvmStatCollector(logger *slog.Logger) (Collector, error) {

Callers

nothing calls this directly

Calls 1

registerCollectorFunction · 0.85

Tested by

no test coverage detected