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

Function init

collector/lnstat_linux.go:31–33  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

29}
30
31func init() {
32 registerCollector("lnstat", defaultDisabled, NewLnstatCollector)
33}
34
35func NewLnstatCollector(logger *slog.Logger) (Collector, error) {
36 return &lnstatCollector{logger}, nil

Callers

nothing calls this directly

Calls 1

registerCollectorFunction · 0.85

Tested by

no test coverage detected