all lists on lists.proxmox.com
 help / color / mirror / Atom feed
From: Dominik Csapak <d.csapak@proxmox.com>
To: pve-devel@lists.proxmox.com
Subject: [pve-devel] [PATCH pve-manager 1/1] ui: node memory RRD: make 'Available' a line graph
Date: Mon,  4 Aug 2025 15:29:28 +0200	[thread overview]
Message-ID: <20250804132928.1714525-2-d.csapak@proxmox.com> (raw)
In-Reply-To: <20250804132928.1714525-1-d.csapak@proxmox.com>

instead of an area graph. Give it the same color as the 'hostmem' one
from the qemu guests (a neutral color that draws not too much
attraction).

While at it, order it last, since it was just ordered second so the
overlapping colors would not clash.

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
---
requires the previous patch to have correct tooltips.

 www/manager6/node/Summary.js | 15 ++++++++++++---
 1 file changed, 12 insertions(+), 3 deletions(-)

diff --git a/www/manager6/node/Summary.js b/www/manager6/node/Summary.js
index 343d4189..64ed3b07 100644
--- a/www/manager6/node/Summary.js
+++ b/www/manager6/node/Summary.js
@@ -206,7 +206,6 @@ Ext.define('PVE.node.Summary', {
                                         },
                                     },
                                 },
-                                'memavailable',
                                 {
                                     yField: 'memused',
                                     title: gettext('Used'),
@@ -236,14 +235,24 @@ Ext.define('PVE.node.Summary', {
                                     },
                                 },
                                 'arcsize',
+                                {
+                                    type: 'line',
+                                    fill: false,
+                                    yField: 'memavailable',
+                                    title: gettext('Available'),
+                                    style: {
+                                        lineWidth: 2.5,
+                                        opacity: 1,
+                                    },
+                                },
                             ],
                             fieldTitles: [
                                 gettext('Total'),
-                                gettext('Available'),
                                 gettext('Used'),
                                 gettext('ZFS ARC'),
+                                gettext('Available'),
                             ],
-                            colors: ['#94ae0a', '#94ae0a', '#115fa6', '#7c7474'],
+                            colors: ['#94ae0a', '#115fa6', '#7c7474', '#c4c0c0'],
                             unit: 'bytes',
                             powerOfTwo: true,
                             store: rrdstore,
-- 
2.39.5



_______________________________________________
pve-devel mailing list
pve-devel@lists.proxmox.com
https://lists.proxmox.com/cgi-bin/mailman/listinfo/pve-devel


  reply	other threads:[~2025-08-04 13:28 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2025-08-04 13:29 [pve-devel] [PATCH proxmox-widget-toolkit 1/1] RRDChart: fix title lookup for object series Dominik Csapak
2025-08-04 13:29 ` Dominik Csapak [this message]
2025-08-04 14:22   ` [pve-devel] applied: [PATCH pve-manager 1/1] ui: node memory RRD: make 'Available' a line graph Thomas Lamprecht
2025-08-04 14:22 ` [pve-devel] applied: [PATCH proxmox-widget-toolkit 1/1] RRDChart: fix title lookup for object series Thomas Lamprecht

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=20250804132928.1714525-2-d.csapak@proxmox.com \
    --to=d.csapak@proxmox.com \
    --cc=pve-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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.
Service provided by Proxmox Server Solutions GmbH | Privacy | Legal