I am trying to create the time series visualization in Kibana for CPU usage on the server, but CPU utilization is showing up as 0% all the time.
However, data for the fields system.cpu.user.pct, system.cpu.system.pct, system.cpu.cores are showing up on the discover page. It's just that when we add these fields in visualization it shows 0% CPU utilization.
-The data were collected from metricbeat.
-The average of system.cpu.user.pct, system.cpu.system.pct, system.cpu.cores was calculated and then each average was stored in 3 different variables. then Using painless Script -->( params.n > 0 ? (params.user+params.system)/params.n : null )
Metricbeat version : 6.8.0
Please suggest some workarounds.