-
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/system] Modify the default value based on the group membership. #42052
Comments
Pinging @elastic/elastic-agent (Team:Elastic-Agent) |
From internal discussions,
@cmacknz 's response:
@cmacknz As you mentioned, the case with performance counters make it complicated. As unprivileged mode was designed to be run with minimal configurations, I wonder how do we progress with this? |
The core problem is we can't enable use of performance counters by default for unprivileged agents without adding those agents to the Performance Monitor Users group automatically. This makes us not unprivileged as in zero privileges. If we don't do this automatically, using performance counters by default will break the core and cpu metricsets in the system module for unprivileged installations when we switch. We can fall back to the old way of collecting metrics in this case today, but then we have to maintain two ways to collect these metrics indefinitely which I don't want to do. Switching to perf counters by default, but keeping the option to avoid using them and documenting that is the path of least resistance but has a maintenance cost for us. |
Path of least resistance works for me, it doesn't strike me that the maintenance burden here will be especially large, and we are constrained by system modules for privileges. |
Originally posted by @cmacknz in #42041 (comment)
The text was updated successfully, but these errors were encountered: