ps and other toolsIt is not uncommon1 2 3 for some linux tools to modify /proc/cmdline contents to make monitoring tools more intelligible, and sometimes to add status information about a process, such as "sleeping", "idle", "running", etc.
Unfortunately, metricbeats seems to cache this information. I think it would be preferable not to cache this information at all, but at the very least an option to avoid caching it would be nice.
I think we added the cache due to performance issues on Windows. It makes sense to me to add an option to disable it.
Or even make it default off on non-Windows.
Hi @tsg. I think it is this line where you cache the cmdline, right?
@maddin2016 Yeah, that is where the grabs the cached cmdline. And this is where it skips the fetching if it already knows the cmdline.
What about an option process.cmdline.cache: true ?
I somehow dislike different behaviour on different OS so I think a config option would work best here.
I would be happy with a config option.
If everyone is happy with a config option I would adopt this issue.
Thanks @maddin2016!