From: Christian Ebner <c.ebner@proxmox.com>
To: pdm-devel@lists.proxmox.com
Subject: [pdm-devel] [RFC datacenter-manager 4/5] ui: dashboard: show datastores with upwards trend in stats panel
Date: Mon, 27 Oct 2025 15:25:50 +0100 [thread overview]
Message-ID: <20251027142551.458160-5-c.ebner@proxmox.com> (raw)
In-Reply-To: <20251027142551.458160-1-c.ebner@proxmox.com>
Shows and allow to filter for datastores which have an upwards trend
which would lead to the datastore being full shortly.
Signed-off-by: Christian Ebner <c.ebner@proxmox.com>
---
ui/src/dashboard/pbs_datastores_panel.rs | 10 +++++++++-
1 file changed, 9 insertions(+), 1 deletion(-)
diff --git a/ui/src/dashboard/pbs_datastores_panel.rs b/ui/src/dashboard/pbs_datastores_panel.rs
index 4cfc0c8..ece918d 100644
--- a/ui/src/dashboard/pbs_datastores_panel.rs
+++ b/ui/src/dashboard/pbs_datastores_panel.rs
@@ -4,7 +4,7 @@ use pdm_api_types::resource::{PbsDatastoreStatusCount, ResourceType};
use pdm_search::{Search, SearchTerm};
use proxmox_yew_comp::Status;
use pwt::{
- css::{self, TextAlign},
+ css::{self, FontColor, TextAlign},
prelude::*,
widget::{Container, Fa, List, ListTile},
};
@@ -43,6 +43,7 @@ pub enum StatusRow {
Removable(u64),
S3Backend(u64),
CriticalUsage(u64),
+ UptrendingUsage(u64),
Unknown(u64),
All(u64),
}
@@ -78,6 +79,7 @@ impl yew::Component for PbsDatastoresPanelComponent {
StatusRow::Removable(status.removable.unwrap_or_default()),
StatusRow::S3Backend(status.s3_backend.unwrap_or_default()),
StatusRow::CriticalUsage(status.critical_usage.unwrap_or_default()),
+ StatusRow::UptrendingUsage(status.uptrending_usage.unwrap_or_default()),
StatusRow::Unknown(status.unknown.unwrap_or_default()),
StatusRow::All(status.online + status.in_maintenance.unwrap_or_default()),
];
@@ -115,6 +117,12 @@ fn create_list_tile(
"Critical Usage",
Some(("critical-usage", "property")),
),
+ StatusRow::UptrendingUsage(count) => (
+ Fa::new("arrow-up").class(FontColor::Warning),
+ count,
+ "Uptrendig Usage",
+ Some(("uptrending-usage", "property")),
+ ),
StatusRow::InMaintenance(count) => (
Fa::new("wrench"),
count,
--
2.47.3
_______________________________________________
pdm-devel mailing list
pdm-devel@lists.proxmox.com
https://lists.proxmox.com/cgi-bin/mailman/listinfo/pdm-devel
next prev parent reply other threads:[~2025-10-27 14:26 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-10-27 14:25 [pdm-devel] [RFC datacenter-manager 0/5] show uptrending datastores in dashboard panel Christian Ebner
2025-10-27 14:25 ` [pdm-devel] [RFC datacenter-manager 1/5] pdm-api-types/ui/resources: rename and bump PBS datastore high-usage Christian Ebner
2025-10-27 14:25 ` [pdm-devel] [RFC datacenter-manager 2/5] pdm-api-types: extend datastore resources by optional estimated full Christian Ebner
2025-10-27 14:25 ` [pdm-devel] [RFC datacenter-manager 3/5] server: resources: account for datastores with upwards usage trend Christian Ebner
2025-10-27 14:25 ` Christian Ebner [this message]
2025-10-27 14:25 ` [pdm-devel] [RFC datacenter-manager 5/5] pdm-api-types: calculate upwards trending datastore usage property Christian Ebner
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20251027142551.458160-5-c.ebner@proxmox.com \
--to=c.ebner@proxmox.com \
--cc=pdm-devel@lists.proxmox.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox