-
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
[system/cpu,core] - Disable performance counter by default to unblock agent CI #42041
[system/cpu,core] - Disable performance counter by default to unblock agent CI #42041
Conversation
Pinging @elastic/elastic-agent-data-plane (Team:Elastic-Agent-Data-Plane) |
This pull request does not have a backport label.
To fixup this pull request, you need to add the backport labels for the needed
|
|
Sadly, the only way to fix it is by add the user to "Performance Monitoring Users" group on Windows. @leehinman @cmacknz what should be the best way to proceed?
|
Whether to use performance counters or not needs to become an explicit configuration exposed in the system integration as well as the module. Because this is configuration, in theory in the agent tests affected by this an agent PR that sets his same configuration to false could be made directly in agent so we don't have to wait for a new DRA build. Since it isn't in the integration yet, the fleet overrides API could be used. Ideally, we would add ourselves to the Performance Monitor Users group automatically, but this will not help agents that were not already installed, so we need a way to handle that. Maybe just having it be configurable with the default value controlled by whether we are in the right group. The DataDog agent installer adds itself to the performance monitor users group and some others for example https://docs.datadoghq.com/agent/guide/windows-agent-ddagent-user/ |
Please create an issue to track this problem so we don't lose the discussion in this PR |
Sure. |
(cherry picked from commit f3a063f) # Conflicts: # metricbeat/docs/modules/system.asciidoc # metricbeat/metricbeat.reference.yml # metricbeat/module/system/_meta/config.reference.yml # metricbeat/module/system/core/_meta/docs.asciidoc # metricbeat/module/system/core/config.go # metricbeat/module/system/cpu/_meta/docs.asciidoc # metricbeat/module/system/cpu/config.go # x-pack/metricbeat/metricbeat.reference.yml
…r by default to unblock agent CI (#42055) * chore: disable performance counters (#42041) (cherry picked from commit f3a063f) # Conflicts: # metricbeat/docs/modules/system.asciidoc # metricbeat/metricbeat.reference.yml # metricbeat/module/system/_meta/config.reference.yml # metricbeat/module/system/core/_meta/docs.asciidoc # metricbeat/module/system/core/config.go # metricbeat/module/system/cpu/_meta/docs.asciidoc # metricbeat/module/system/cpu/config.go # x-pack/metricbeat/metricbeat.reference.yml * Fix Asciidoc formatting --------- Co-authored-by: Vihas Makwana <[email protected]> Co-authored-by: Vihas Makwana <[email protected]> Co-authored-by: David Kilfoyle <[email protected]>
(cherry picked from commit f3a063f) # Conflicts: # metricbeat/docs/modules/system.asciidoc # metricbeat/metricbeat.reference.yml # metricbeat/module/system/_meta/config.reference.yml # metricbeat/module/system/core/_meta/docs.asciidoc # metricbeat/module/system/core/config.go # metricbeat/module/system/cpu/_meta/docs.asciidoc # metricbeat/module/system/cpu/config.go # x-pack/metricbeat/metricbeat.reference.yml
(cherry picked from commit f3a063f) # Conflicts: # metricbeat/docs/modules/system.asciidoc # metricbeat/metricbeat.reference.yml # metricbeat/module/system/_meta/config.reference.yml # metricbeat/module/system/core/_meta/docs.asciidoc # metricbeat/module/system/core/config.go # metricbeat/module/system/cpu/_meta/docs.asciidoc # metricbeat/module/system/cpu/config.go # x-pack/metricbeat/metricbeat.reference.yml
Co-authored-by: Vihas Makwana <[email protected]>
Co-authored-by: Vihas Makwana <[email protected]>
Alternative to #42042.
This is a temporary fix as CI on elastic-agent's main is broken https://buildkite.com/elastic/elastic-agent-extended-testing/builds/5390#0193c17f-c655-422a-8dc9-ae5a7a40fdbd.
This most likely happened because user not having enough permissions to read from performance counter. I'll do some more digging and fix the underlying issue.