[Metrics UI] Use the normalized field for CPU usage for Observability Overview (#98995)
* [Metrics UI] Use the noramlized field for CPU usage for Observability Overview * fixing overview page as well Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
This commit is contained in:
parent
dfcb1794d4
commit
83fd34d41c
|
@ -24,42 +24,10 @@ export const hostSystemOverview: TSVBMetricModelCreator = (
|
|||
split_mode: 'everything',
|
||||
metrics: [
|
||||
{
|
||||
field: 'system.cpu.user.pct',
|
||||
id: 'avg-cpu-user',
|
||||
field: 'system.cpu.total.norm.pct',
|
||||
id: 'avg-cpu-total',
|
||||
type: 'avg',
|
||||
},
|
||||
{
|
||||
field: 'system.cpu.cores',
|
||||
id: 'max-cpu-cores',
|
||||
type: 'max',
|
||||
},
|
||||
{
|
||||
field: 'system.cpu.system.pct',
|
||||
id: 'avg-cpu-system',
|
||||
type: 'avg',
|
||||
},
|
||||
{
|
||||
id: 'calc-user-system-cores',
|
||||
script: '(params.users + params.system) / params.cores',
|
||||
type: 'calculation',
|
||||
variables: [
|
||||
{
|
||||
field: 'avg-cpu-user',
|
||||
id: 'var-users',
|
||||
name: 'users',
|
||||
},
|
||||
{
|
||||
field: 'avg-cpu-system',
|
||||
id: 'var-system',
|
||||
name: 'system',
|
||||
},
|
||||
{
|
||||
field: 'max-cpu-cores',
|
||||
id: 'var-cores',
|
||||
name: 'cores',
|
||||
},
|
||||
],
|
||||
},
|
||||
],
|
||||
},
|
||||
{
|
||||
|
|
|
@ -60,7 +60,7 @@ export const createTopNodesQuery = (
|
|||
},
|
||||
cpu: {
|
||||
avg: {
|
||||
field: 'system.cpu.total.pct',
|
||||
field: 'system.cpu.total.norm.pct',
|
||||
},
|
||||
},
|
||||
iowait: {
|
||||
|
|
Loading…
Reference in a new issue