-
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
hostmetricsreceiver: (filesystems scraper) Collect additional labels from partitions #1858
hostmetricsreceiver: (filesystems scraper) Collect additional labels from partitions #1858
Conversation
…from partitions Issue: open-telemetry#1852
Codecov Report
@@ Coverage Diff @@
## master #1858 +/- ##
==========================================
- Coverage 91.23% 91.14% -0.10%
==========================================
Files 272 269 -3
Lines 16263 16218 -45
==========================================
- Hits 14838 14782 -56
- Misses 998 1008 +10
- Partials 427 428 +1
Continue to review full report at Codecov.
|
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.
receiver/hostmetricsreceiver/internal/scraper/filesystemscraper/filesystem_scraper_test.go
Outdated
Show resolved
Hide resolved
receiver/hostmetricsreceiver/internal/scraper/filesystemscraper/filesystem_metadata.go
Outdated
Show resolved
Hide resolved
29a7302
to
6f4027d
Compare
@asuresh4 are these changes compliant with the proposal for system metric names here? https://github.com/open-telemetry/opentelemetry-helm-charts/ I know spec PR is not yet merged, but I wonder if there is an intersection between what you did and that PR and if we will need to adjust anything if spec PR is merged. |
@tigrannajaryan - I left a comment here: open-telemetry/opentelemetry-specification#937, is that the PR you're referring to? 3 new labels for filesystems will need to included in the spec as part of this update. |
Yes, that one, sorry for the incorrect link in my previous comment. |
Description: Collect additional labels (
fs.type
,mount.mode
,mount.point
) in the filesystems scraper. Currently the receiver does not honor multiple mount points for a single device. This change will capture all mount points in such cases and also collects the mode (ro
orrw
). This PR also adds a label calledfs.type
to capture filesystem type.In a followup PR, will add ability to filter by mount points as well.
Link to tracking Issue: #1852
Testing: Updated tests.