You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The PartitionsWithContextfunc on windows gopsutil/disk_windows.go stops on error and returns the list of partitions already collected and an error; so even if our scraper processed the partitions that are already collected and ignored the error, there is no guarantee that we’ll cover all partitions.
The behavior of the collector, coupled with the new release of gopsutil, should now fix the issue. I will mark this closed and I look forward to the next release of the collector.
What happened?
Description
The hostmetrics-> filesystems scraper is failing with this error
We do not care about metrics for this locked drive, but this error is preventing other drives from getting scraped.
The error is thrown when we tried to get the list of partitions at https://github.com/open-telemetry/opentelemetry-collector-contrib/blob/main/receiver/hostmetricsreceiver/internal/scraper/filesystemscraper/filesystem_scraper.go#L80.
User tried to exclude the driver, but the problem is that those filters are applied after we get the partitions https://github.com/open-telemetry/opentelemetry-collector-contrib/blob/main/receiver/hostmetricsreceiver/internal/scraper/filesystemscraper/filesystem_scraper.go#L88.
The PartitionsWithContextfunc on windows gopsutil/disk_windows.go stops on error and returns the list of partitions already collected and an error; so even if our scraper processed the partitions that are already collected and ignored the error, there is no guarantee that we’ll cover all partitions.
I have opened shirou/gopsutil#1347 to fix the issue from gopsutil.
Steps to Reproduce
Expected Result
Actual Result
Collector version
0.59.0
Environment information
Environment
OS: Windows
OpenTelemetry Collector configuration
No response
Log output
No response
Additional context
No response
The text was updated successfully, but these errors were encountered: