Skip to content

Commit 303c027

Browse files
JimChenWYUjimchen
and
jimchen
authored
修复优维主机信息初始化 (#6)
Co-authored-by: jimchen <[email protected]>
1 parent fbaf3e0 commit 303c027

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

receiver/hostmetricsreceiver/factory.go

+2
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ import (
1818
"github.com/open-telemetry/opentelemetry-collector-contrib/receiver/hostmetricsreceiver/internal/scraper/cpuscraper"
1919
"github.com/open-telemetry/opentelemetry-collector-contrib/receiver/hostmetricsreceiver/internal/scraper/diskscraper"
2020
"github.com/open-telemetry/opentelemetry-collector-contrib/receiver/hostmetricsreceiver/internal/scraper/filesystemscraper"
21+
"github.com/open-telemetry/opentelemetry-collector-contrib/receiver/hostmetricsreceiver/internal/scraper/infoscraper"
2122
"github.com/open-telemetry/opentelemetry-collector-contrib/receiver/hostmetricsreceiver/internal/scraper/loadscraper"
2223
"github.com/open-telemetry/opentelemetry-collector-contrib/receiver/hostmetricsreceiver/internal/scraper/memoryscraper"
2324
"github.com/open-telemetry/opentelemetry-collector-contrib/receiver/hostmetricsreceiver/internal/scraper/networkscraper"
@@ -30,6 +31,7 @@ import (
3031
var (
3132
scraperFactories = map[string]internal.ScraperFactory{
3233
cpuscraper.TypeStr: &cpuscraper.Factory{},
34+
infoscraper.TypeStr: &infoscraper.Factory{},
3335
diskscraper.TypeStr: &diskscraper.Factory{},
3436
loadscraper.TypeStr: &loadscraper.Factory{},
3537
filesystemscraper.TypeStr: &filesystemscraper.Factory{},

0 commit comments

Comments
 (0)