-
Notifications
You must be signed in to change notification settings - Fork 1.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Initial commit of host metrics disk scraper #921
Initial commit of host metrics disk scraper #921
Conversation
44e10bc
to
4c23ef1
Compare
} | ||
|
||
// Close | ||
func (s *Scraper) Close(ctx context.Context) error { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Would suggest to use Shutdown instead of "Close".
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Alright but I'll refactor in another PR again since this is in the Scraper interface
receiver/hostmetricsreceiver/internal/scraper/diskscraper/disk_scraper.go
Outdated
Show resolved
Hide resolved
c51a390
to
c2d0308
Compare
receiver/hostmetricsreceiver/internal/scraper/diskscraper/factory_test.go
Outdated
Show resolved
Hide resolved
c2d0308
to
026710b
Compare
Codecov Report
@@ Coverage Diff @@
## master #921 +/- ##
==========================================
+ Coverage 85.49% 85.54% +0.05%
==========================================
Files 178 181 +3
Lines 13322 13430 +108
==========================================
+ Hits 11389 11489 +100
- Misses 1479 1484 +5
- Partials 454 457 +3
Continue to review full report at Codecov.
|
Link to tracking Issue:
#847
Description:
Added disk scraper to the hostmetricsreceiver which uses gopsutil to collect disk related metrics