From 54057bfb880bc316a0c9977bdc670d2019232f8f Mon Sep 17 00:00:00 2001 From: jennypavlova Date: Thu, 7 Sep 2023 14:55:29 +0200 Subject: [PATCH] [Infra UI] Add Disk Space Usage by Mount Point to Hosts Fly Out (#165852) Closes #164209 ## Summary This PR adds Disk Space Usage by Mount Point chart to host flyout ## Testing Go to hosts view and open the host flyout The Disk Space Usage by Mount Point chart should be visible: image --- .../lens/dashboards/asset_details/host/host_metric_charts.ts | 1 + x-pack/test/functional/apps/infra/hosts_view.ts | 4 ++-- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/x-pack/plugins/infra/public/common/visualizations/lens/dashboards/asset_details/host/host_metric_charts.ts b/x-pack/plugins/infra/public/common/visualizations/lens/dashboards/asset_details/host/host_metric_charts.ts index 9a0d4b0f73059d..5da21aba45c336 100644 --- a/x-pack/plugins/infra/public/common/visualizations/lens/dashboards/asset_details/host/host_metric_charts.ts +++ b/x-pack/plugins/infra/public/common/visualizations/lens/dashboards/asset_details/host/host_metric_charts.ts @@ -22,6 +22,7 @@ export const hostMetricFlyoutCharts: XYConfig[] = [ normalizedLoad1m, logRate, diskSpaceUsageAvailable, + diskSpaceUsageByMountPoint, diskThroughputReadWrite, diskIOReadWrite, rxTx, diff --git a/x-pack/test/functional/apps/infra/hosts_view.ts b/x-pack/test/functional/apps/infra/hosts_view.ts index a225ea4c476e43..e8f7730522f428 100644 --- a/x-pack/test/functional/apps/infra/hosts_view.ts +++ b/x-pack/test/functional/apps/infra/hosts_view.ts @@ -305,9 +305,9 @@ export default ({ getPageObjects, getService }: FtrProviderContext) => { }); }); - it('should render 8 charts in the Metrics section', async () => { + it('should render 9 charts in the Metrics section', async () => { const hosts = await pageObjects.assetDetails.getAssetDetailsMetricsCharts(); - expect(hosts.length).to.equal(8); + expect(hosts.length).to.equal(9); }); it('should show alerts', async () => {