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

Function init

collector/systemd_linux.go:85–87  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

83var unitStatesName = []string{"active", "activating", "deactivating", "inactive", "failed"}
84
85func init() {
86 registerCollector("systemd", defaultDisabled, NewSystemdCollector)
87}
88
89// NewSystemdCollector returns a new Collector exposing systemd statistics.
90func NewSystemdCollector(logger *slog.Logger) (Collector, error) {

Callers

nothing calls this directly

Calls 1

registerCollectorFunction · 0.85

Tested by

no test coverage detected