-
Notifications
You must be signed in to change notification settings - Fork 2.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
[receiver/hostmetrics] (Filesystems Scraper) Folder mounted volumes under windows are not reported #27203
Comments
Pinging code owners:
See Adding Labels via Comments if you do not have permissions to add labels yourself. |
Sounds good to me. I think we should try to push the fix in gopsutil before porting the SA implementation |
Pushed the fix to gopsutil shirou/gopsutil#1534 |
This issue has been inactive for 60 days. It will be closed in 60 days if there is no activity. To ping code owners by adding a component label, see Adding Labels via Comments, or if you are unsure of which component this issue relates to, please ping Pinging code owners: See Adding Labels via Comments if you do not have permissions to add labels yourself. |
Keeping open since there's a PR open for this in gopsutil. |
This issue has been inactive for 60 days. It will be closed in 60 days if there is no activity. To ping code owners by adding a component label, see Adding Labels via Comments, or if you are unsure of which component this issue relates to, please ping Pinging code owners: See Adding Labels via Comments if you do not have permissions to add labels yourself. |
This issue has been inactive for 60 days. It will be closed in 60 days if there is no activity. To ping code owners by adding a component label, see Adding Labels via Comments, or if you are unsure of which component this issue relates to, please ping Pinging code owners: See Adding Labels via Comments if you do not have permissions to add labels yourself. |
This issue has been inactive for 60 days. It will be closed in 60 days if there is no activity. To ping code owners by adding a component label, see Adding Labels via Comments, or if you are unsure of which component this issue relates to, please ping Pinging code owners: See Adding Labels via Comments if you do not have permissions to add labels yourself. |
Component(s)
receiver/hostmetrics
What happened?
Description
The
filesystem
scraper uses GoPsutil lib to get the windows partitions/volumes stats; However, it only fetches letter mounted volumes https://github.com/shirou/gopsutil/blame/v3.23.8/disk/disk_windows.go#L108If user mounted a volume to a path, the scraper will not get any metrics for that volumes
Steps to Reproduce
From there, add “Mount in the following empty NTFS folder” and select an empty dir on the C:\ drive and make sure there is NO assigned drive letter
Run the collector with this simple config
Expected Result
The folder mounted volume is not present in the metrics
Actual Result
The folder mounted volume should be present in the collected metrics
Proposed Solution
We ran into this issue in the Signalfx agent and we implemented this https://github.com/signalfx/signalfx-agent/blob/main/pkg/monitors/filesystems/partitions_windows.go to address the issue as GoPSutil has not addressed the issue shirou/gopsutil#1245
Happy to move the SA implementation to here while waiting on gopsutil to fix it.
Collector version
main
The text was updated successfully, but these errors were encountered: