diff --git a/x-pack/plugins/infra/public/common/visualizations/lens/dashboards/asset_details/host/host_kpi_charts.ts b/x-pack/plugins/infra/public/common/visualizations/lens/dashboards/asset_details/host/host_kpi_charts.ts index 000d8d4323fb8..b911eadbc6583 100644 --- a/x-pack/plugins/infra/public/common/visualizations/lens/dashboards/asset_details/host/host_kpi_charts.ts +++ b/x-pack/plugins/infra/public/common/visualizations/lens/dashboards/asset_details/host/host_kpi_charts.ts @@ -96,7 +96,7 @@ export const hostKPICharts: KPIChartProps[] = [ toolTip: METRICS_TOOLTIP.memoryUsage, }, { - id: 'diskUsage', + id: 'diskSpaceUsage', title: i18n.translate('xpack.infra.assetDetailsEmbeddable.overview.kpi.diskUsage.title', { defaultMessage: 'Disk Usage', }), diff --git a/x-pack/test/functional/apps/infra/hosts_view.ts b/x-pack/test/functional/apps/infra/hosts_view.ts index c5a3e823daf1e..e8f7730522f42 100644 --- a/x-pack/test/functional/apps/infra/hosts_view.ts +++ b/x-pack/test/functional/apps/infra/hosts_view.ts @@ -31,7 +31,7 @@ const tableEntries = [ normalizedLoad: '0.5%', memoryUsage: '18.4%', memoryFree: '3.2 GB', - diskUsage: '17.6%', + diskSpaceUsage: '17.6%', rx: '0 bit/s', tx: '0 bit/s', }, @@ -41,7 +41,7 @@ const tableEntries = [ normalizedLoad: '0.1%', memoryUsage: '13.8%', memoryFree: '3.3 GB', - diskUsage: '16.9%', + diskSpaceUsage: '16.9%', rx: '0 bit/s', tx: '0 bit/s', }, @@ -51,7 +51,7 @@ const tableEntries = [ normalizedLoad: '0%', memoryUsage: '16.5%', memoryFree: '3.2 GB', - diskUsage: '16.3%', + diskSpaceUsage: '16.3%', rx: '0 bit/s', tx: '0 bit/s', }, @@ -61,7 +61,7 @@ const tableEntries = [ normalizedLoad: '0%', memoryUsage: '18.2%', memoryFree: '3.2 GB', - diskUsage: '17.8%', + diskSpaceUsage: '17.8%', rx: '0 bit/s', tx: '0 bit/s', }, @@ -71,7 +71,7 @@ const tableEntries = [ normalizedLoad: '1.4%', memoryUsage: '18%', memoryFree: '3.2 GB', - diskUsage: '17.5%', + diskSpaceUsage: '17.5%', rx: '0 bit/s', tx: '0 bit/s', }, @@ -81,7 +81,7 @@ const tableEntries = [ normalizedLoad: '0%', memoryUsage: '15.9%', memoryFree: '3.3 GB', - diskUsage: '16.3%', + diskSpaceUsage: '16.3%', rx: '0 bit/s', tx: '0 bit/s', }, @@ -293,7 +293,7 @@ export default ({ getPageObjects, getService }: FtrProviderContext) => { { metric: 'cpuUsage', value: '13.9%' }, { metric: 'normalizedLoad1m', value: '18.8%' }, { metric: 'memoryUsage', value: '94.9%' }, - { metric: 'diskUsage', value: 'N/A' }, + { metric: 'diskSpaceUsage', value: 'N/A' }, ].forEach(({ metric, value }) => { it(`${metric} tile should show ${value}`, async () => { await retry.try(async () => { @@ -496,7 +496,7 @@ export default ({ getPageObjects, getService }: FtrProviderContext) => { { metric: 'cpuUsage', value: '0.8%' }, { metric: 'normalizedLoad1m', value: '0.3%' }, { metric: 'memoryUsage', value: '16.8%' }, - { metric: 'diskUsage', value: '17.1%' }, + { metric: 'diskSpaceUsage', value: '17.1%' }, ].forEach(({ metric, value }) => { it(`${metric} tile should show ${value}`, async () => { await retry.try(async () => { @@ -651,7 +651,7 @@ export default ({ getPageObjects, getService }: FtrProviderContext) => { { metric: 'cpuUsage', value: '0.8%' }, { metric: 'normalizedLoad1m', value: '0.2%' }, { metric: 'memoryUsage', value: '16.3%' }, - { metric: 'diskUsage', value: '16.9%' }, + { metric: 'diskSpaceUsage', value: '16.9%' }, ].map(async ({ metric, value }) => { await retry.try(async () => { const tileValue = await pageObjects.infraHostsView.getKPITileValue(metric); diff --git a/x-pack/test/functional/apps/infra/node_details.ts b/x-pack/test/functional/apps/infra/node_details.ts index 11bed00cf238c..0a692c607b7ac 100644 --- a/x-pack/test/functional/apps/infra/node_details.ts +++ b/x-pack/test/functional/apps/infra/node_details.ts @@ -163,7 +163,7 @@ export default ({ getPageObjects, getService }: FtrProviderContext) => { { metric: 'cpuUsage', value: '13.9%' }, { metric: 'normalizedLoad1m', value: '18.8%' }, { metric: 'memoryUsage', value: '94.9%' }, - { metric: 'diskUsage', value: 'N/A' }, + { metric: 'diskSpaceUsage', value: 'N/A' }, ].forEach(({ metric, value }) => { it(`${metric} tile should show ${value}`, async () => { await retry.tryForTime(3 * 1000, async () => { @@ -372,7 +372,7 @@ export default ({ getPageObjects, getService }: FtrProviderContext) => { { metric: 'cpuUsage', value: '0.8%' }, { metric: 'normalizedLoad1m', value: '1.4%' }, { metric: 'memoryUsage', value: '18.0%' }, - { metric: 'diskUsage', value: '17.5%' }, + { metric: 'diskSpaceUsage', value: '17.5%' }, ].forEach(({ metric, value }) => { it(`${metric} tile should show ${value}`, async () => { await retry.tryForTime(3 * 1000, async () => {