-
Notifications
You must be signed in to change notification settings - Fork 4.9k
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
Metricbeat fstat on Windows always shows zero values #2842
Comments
Is this for all drives? Or is it only for |
Can confirm this behavior on all drives. I get the bytes (system.diskio.write.bytes and system.diskio.read.bytes) but no times, ever. Beats are running on several Windows Server 2008 SP1 and 2012 R2 machines. Same behavior with both version 5.3.0 and 5.4.0. No errors in the metricbeat log, and nothing obvious in the elasticsearch log either. |
@ruflin any status on this? we have a case where |
@consulthys I don't think any changes happened here. Any errors in the logs? Which Metricbeat version? |
@ruflin no errors in the logs, |
Same issue here |
@wheelq with what version of metricbeat and windows? |
latest :) |
We take these values directly from |
Ok. What would you like me to provide you in order to investigate |
@andrewkroh Is there any progress, this bug seem to be report so longggggggggggggggggggggggggggggggggggggggggggggggg |
@bebeo92, I suspect you might be hitting the file system cache in this case (https://docs.microsoft.com/en-us/windows/desktop/fileio/file-caching). |
(SELECT * FROM Win32_PerfFormattedData_PerfDisk_LogicalDisk) with DeviceIOControl Win32 API method using IOCTL_DISK_PERFORMANCE control code. Fixes: elastic#3798 and elastic#2842
* Replace using WMI query to get the system/diskio metrics for Windows (SELECT * FROM Win32_PerfFormattedData_PerfDisk_LogicalDisk) with DeviceIOControl Win32 API method using IOCTL_DISK_PERFORMANCE control code. Fixes: #3798 and #2842 * Fixed cross platform build, added tests and include_devices filter Added: - include_devices filter to the IOCounters - test file to assert get stats on C: returns data - addressed houndci-bot style violations * Fix goimports style * Fix goimports styling * Fix goimports and houndci-bot requests * Fix support for osx * Re-run build, address houndci-bot messages * Update changelog file * Addressed PR comments * Addressing review notes * Enrich test and implement separate function to enable the performance counters * Add disable performance counters functionality for testing * Log meesage when the EnableCounterForIoctl is added/updated in the registry * Check for registry key value before updating it * Address new code reviews * small refactoring of deviceiocontrol functions
Replaced the current WMI query to get the system/diskio metrics for Windows |
@andrewkroh sorry for late reply. I'm busy with other works All running on win 10 |
I saw there is a bug fix for it |
I'm running metricbeat on a bunch of Windows servers as a test, and I am seeing ES records for each drive on the server, but the values are always zero.
I am using metricbeat version 5.0.0-rc1 (amd64), libbeat 5.0.0-rc1.
The text was updated successfully, but these errors were encountered: