-
Notifications
You must be signed in to change notification settings - Fork 2.9k
[receiver/hostmetrics] Add skeleton for new hostmetrics scraper: nfsscraper #40050
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
[receiver/hostmetrics] Add skeleton for new hostmetrics scraper: nfsscraper #40050
Conversation
nfsscraper will provide metrics for the OS NFS client and server.
I added a new Makefile target to fix that codeowners action failure; if you update this branch you can run |
Please add a changelog. Run |
7d9e2fd
to
41265e9
Compare
Done |
Done |
In #40093 I did some cleanup in the |
I fixed up factory.go/factory_test.go in: 56caaad However, generated_component_test.go is still failing the Windows tests: https://github.com/open-telemetry/opentelemetry-collector-contrib/actions/runs/15123062752/job/42516261379?pr=40050 Suggestions on resolving this? I don't see OS checks in the other scrapers' generated_component_test.go. |
I think that CI failure would be fixable by resolving the conflicts on the branch. |
done |
go.mod
Outdated
@@ -16,3 +16,120 @@ retract ( | |||
v0.65.0 | |||
v0.37.0 // Contains dependencies on v0.36.0 components, which should have been updated to v0.37.0. | |||
) | |||
|
|||
require ( |
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.
Hmm not sure what happened here but doesn't look intentional.
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.
fixed
receiver/hostmetricsreceiver/go.mod
Outdated
@@ -29,6 +29,7 @@ require ( | |||
go.opentelemetry.io/collector/scraper v0.127.1-0.20250603105141-605011a1fea8 | |||
go.opentelemetry.io/collector/scraper/scraperhelper v0.127.1-0.20250603105141-605011a1fea8 | |||
go.opentelemetry.io/collector/scraper/scrapertest v0.127.1-0.20250603105141-605011a1fea8 | |||
go.opentelemetry.io/collector/semconv v0.127.0 |
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.
I think this module version needs to match the other go.opentelemetry.io/collector
modules.
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.
fixed
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.
Looks good from my side, @braydonk PTAL if you can
receiver/hostmetricsreceiver/internal/scraper/nfsscraper/nfs_scraper.go
Outdated
Show resolved
Hide resolved
…craper.go Co-authored-by: Braydon Kains <[email protected]>
…craper (open-telemetry#40050) nfsscraper will provide metrics for the OS NFS client and server. #### Link to tracking issue [https://github.com/open-telemetry/opentelemetry-collector-contrib/issues/39978](https://github.com/open-telemetry/opentelemetry-collector-contrib/issues/39978) nfsscraper is not initialized from hostmetricsreceiver in this skeleton PR. I did need to include a single metric in metadata.yaml so mdatagen would create the required files for tests to pass. --------- Co-authored-by: Braydon Kains <[email protected]>
nfsscraper will provide metrics for the OS NFS client and server.
Link to tracking issue #39978
nfsscraper is not initialized from hostmetricsreceiver in this skeleton PR. I did need to include a single metric in metadata.yaml so mdatagen would create the required files for tests to pass.