mirror of
https://github.com/prometheus/node_exporter.git
synced 2025-01-27 05:39:02 -08:00
Export newUnameCollector function in uname.go (#3227)
Some checks failed
golangci-lint / lint (push) Has been cancelled
Some checks failed
golangci-lint / lint (push) Has been cancelled
Signed-off-by: Vitaly Orlov <orloff.v@gmail.com>
This commit is contained in:
parent
c46d1f23d0
commit
810510e12b
|
@ -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
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue