windows_exporter icon indicating copy to clipboard operation
windows_exporter copied to clipboard

Feature Request: Support for User Input Delay Performance Counters

Open mrclemensiii opened this issue 3 years ago • 3 comments

Starting in Windows 2019 and higher Microsoft has released some new performance counters for Remote Desktop Session Hosts: https://docs.microsoft.com/en-us/windows-server/remote/remote-desktop-services/rds-rdsh-performance-counters

The ability to capture data for "User Input Delay per Process" and User Input Delay per Session(Max and Average)"

The CimClasses involved are

  • Win32_PerfRawData_LSM_UserInputDelayperProcess
  • Win32_PerfFormattedData_LSM_UserInputDelayperProcess
  • Win32_PerfRawData_LSM_UserInputDelayperSession
  • Win32_PerfFormattedData_LSM_UserInputDelayperSession

mrclemensiii avatar Mar 22 '22 23:03 mrclemensiii

Do you know if these classes are available through Perflib? You could try running Get-Counter -ListSet * | Sort-Object -Property CounterSetName | Select CounterSetName and reviewing the output to see if there are any relevant counter sets.

If not it would be possible to implement a WMI collector for this, though that would be a last resort.

breed808 avatar Apr 06 '22 10:04 breed808

@breed808 looks like the classes are available through Perflib.

PS C:\Windows\system32> Get-Counter -ListSet User* | Sort-Object -Property CounterSetName | Select CounterSetName

CounterSetName

User Input Delay per Process User Input Delay per Session

mrclemensiii avatar Apr 26 '22 14:04 mrclemensiii

@mrclemensiii do you currently use either the terminal_services or remote_fx collectors? We're considering merging the User Input Delay metrics to one of these collectors, due to the small number of new metrics.

breed808 avatar May 16 '22 21:05 breed808

This issue has been marked as stale because it has been open for 90 days with no activity. This thread will be automatically closed in 30 days if no further activity occurs.

github-actions[bot] avatar Nov 25 '23 02:11 github-actions[bot]