I have a requirement, where I will need to collect data for top 10 resource consuming processes on the VM along with having to collect resource utilization data for metricbeat. First part was pretty simple, but when it comes to having to include resource utilization data for metricbeat process along with top 10 resource utilizing processes, I haven't been able to come up with a logic on how to do that. Can someone please help throw in any ideas on how I could possibly do this?
for Top 10 processes data, am using below command.
processes: ['.*'] process.include_top_n: by_cpu: 10 # include top 10 processes by CPU by_memory: 10 # include top 10 processes by memory
Appreciate your time and help with this