diff --git a/collector/uname.go b/collector/uname.go index c3e96b0b..32ca08c4 100644 --- a/collector/uname.go +++ b/collector/uname.go @@ -50,11 +50,11 @@ type uname struct { } func init() { - registerCollector("uname", defaultEnabled, newUnameCollector) + registerCollector("uname", defaultEnabled, NewUnameCollector) } // NewUnameCollector returns new unameCollector. -func newUnameCollector(logger *slog.Logger) (Collector, error) { +func NewUnameCollector(logger *slog.Logger) (Collector, error) { return &unameCollector{logger}, nil }