[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:
Chris Cowan 2021-05-04 07:40:56 -07:00 committed by GitHub
parent dfcb1794d4
commit 83fd34d41c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 35 deletions

View file

@ -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',
},
],
},
],
},
{

View file

@ -60,7 +60,7 @@ export const createTopNodesQuery = (
},
cpu: {
avg: {
field: 'system.cpu.total.pct',
field: 'system.cpu.total.norm.pct',
},
},
iowait: {