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

Function init

collector/logind_linux.go:84–86  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

82}
83
84func init() {
85 registerCollector("logind", defaultDisabled, NewLogindCollector)
86}
87
88// NewLogindCollector returns a new Collector exposing logind statistics.
89func NewLogindCollector(logger *slog.Logger) (Collector, error) {

Callers

nothing calls this directly

Calls 1

registerCollectorFunction · 0.85

Tested by

no test coverage detected