From 5aa2c910ba2163e20ce60bcd4a261daaaca36362 Mon Sep 17 00:00:00 2001 From: Joshua Boniface Date: Wed, 26 Feb 2025 16:46:29 -0500 Subject: [PATCH] Add storage chart --- pvcweb-vue/src/App.vue | 6 +- pvcweb-vue/src/components/MetricsCharts.vue | 69 +++++++++++++++------ 2 files changed, 55 insertions(+), 20 deletions(-) diff --git a/pvcweb-vue/src/App.vue b/pvcweb-vue/src/App.vue index 3d0ab7e..0211e53 100644 --- a/pvcweb-vue/src/App.vue +++ b/pvcweb-vue/src/App.vue @@ -40,7 +40,8 @@ const nodeData = ref([]); const metricsHistory = ref({ cpu: { labels: [], data: [] }, memory: { labels: [], data: [] }, - health: { labels: [], data: [] } + health: { labels: [], data: [] }, + storage: { labels: [], data: [] } }); const showConnectionStatus = ref(false); @@ -64,7 +65,8 @@ const updateMetricsHistory = (timestamp, status) => { const metrics = { cpu: status.resources?.cpu?.utilization || 0, memory: status.resources?.memory?.utilization || 0, - health: status.cluster_health?.health || 0 + health: status.cluster_health?.health || 0, + storage: status.resources?.disk?.utilization || 0 }; Object.keys(metrics).forEach(metric => { diff --git a/pvcweb-vue/src/components/MetricsCharts.vue b/pvcweb-vue/src/components/MetricsCharts.vue index 07a2a0e..c3c7e36 100644 --- a/pvcweb-vue/src/components/MetricsCharts.vue +++ b/pvcweb-vue/src/components/MetricsCharts.vue @@ -1,10 +1,25 @@