Skip to content
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

[metric/system/diskio] On Windows network shares are not reported. #154

Open
leehinman opened this issue May 28, 2024 · 1 comment
Open
Labels
Team:Elastic-Agent-Data-Plane Label for the Agent Data Plane team

Comments

@leehinman
Copy link
Contributor

In Windows diskio to network mapped drives is not reported.

  1. use net use to map a network drive. net use Z: \\VBOXSVR\vagrant
  2. in cmd.exe switch to the drive. Z:
  3. start metricbeat with system module enabled and just diskio metricset
  4. in cmd.exe create some disk io. echo "some long string" > newfile.txt

We do see events for the C: drive, but nothing for the Z: drive.

We do see the following error:

{"log.level":"error","@timestamp":"2024-05-28T09:16:49.163-0700","log.origin":{"function":"github.com/elastic/elastic-agent-system-metrics/metric/system/diskio.ioCounters","file.name":"diskio/diskstat_windows_helper.go","file.line":75},"message":"Could not return any performance counter values for \\\\.\\Z: .Error: Incorrect function.","service.name":"metricbeat","ecs.version":"1.6.0"}

We need to either fix or update the documentation for windows diskio that network drives will not be reported.

@ycombinator ycombinator added the Team:Elastic-Agent-Data-Plane Label for the Agent Data Plane team label May 28, 2024
@nerophon
Copy link

It looks like the problem may be here:
https://github.com/shirou/gopsutil/blob/master/disk/disk_windows.go#L202

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Team:Elastic-Agent-Data-Plane Label for the Agent Data Plane team
Projects
None yet
Development

No branches or pull requests

3 participants