I am testing the new Windows module in metricbeat-6.0.0-alpha1 on Windows 7 and Windows 10 machines. I am very excited about this functionality!
The issue/concern I have is if the perfmon counter does not exist on the machine, metricbeat fails to start with the following error.
Exiting: 1 error: initialization failed: failed to add counter (path="\ICA Session(_Server Total)\Latency - Last Recorded"): The specified object was not found on the computer.
For my use case, I would like to run the metricbeat agent on physical and virtual machines. The virtual machines have this counter but the physical machines do not. Ideally, I would like to use the same yml file across all machines to keep the deployment simple. I understand the logic behind failing if the counters don't exist but I would propose that be a warning instead of a fatal error.