Re: Pgadmin4 System Stats Extension Design

From: Sahil Harpal <sahilharpal1234(at)gmail(dot)com>
To: Aditya Toshniwal <aditya(dot)toshniwal(at)enterprisedb(dot)com>
Cc: Khushboo Vashi <khushboo(dot)vashi(at)enterprisedb(dot)com>, pgadmin-hackers(at)postgresql(dot)org, Dave Page <dpage(at)pgadmin(dot)org>, Akshay Joshi <akshay(dot)joshi(at)enterprisedb(dot)com>, Ashesh Vashi <ashesh(dot)vashi(at)enterprisedb(dot)com>
Subject: Re: Pgadmin4 System Stats Extension Design
Date: 2023-08-25 08:04:57
Message-ID: CAKi=nndiSd72JfW+2npo6r4Q_7csoK-UT37EErVAY0vi2BziJQ@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgadmin-hackers

Hi Aditya,
On Fri, 25 Aug 2023 at 12:32, Aditya Toshniwal <
aditya(dot)toshniwal(at)enterprisedb(dot)com> wrote:

>
> On Fri, Aug 25, 2023 at 12:15 PM Sahil Harpal <sahilharpal1234(at)gmail(dot)com>
> wrote:
>
>> Hi Aditya,
>>
>> On Fri, 25 Aug 2023 at 12:06, Aditya Toshniwal <
>> aditya(dot)toshniwal(at)enterprisedb(dot)com> wrote:
>>
>>> Hi Sahil,
>>>
>>> On Fri, Aug 25, 2023 at 12:02 PM Sahil Harpal <sahilharpal1234(at)gmail(dot)com>
>>> wrote:
>>>
>>>> Hi Aditya,
>>>> On Fri, 25 Aug 2023 at 11:29, Aditya Toshniwal <
>>>> aditya(dot)toshniwal(at)enterprisedb(dot)com> wrote:
>>>> [image: image.gif]
>>>>
>>>>> Hi Sahil,
>>>>> On Thu, Aug 24, 2023 at 8:07 PM Sahil Harpal <
>>>>> sahilharpal1234(at)gmail(dot)com> wrote:
>>>>>
>>>>>> Hi,
>>>>>> Can we include total space stats (left pie chart) in the same bar
>>>>>> chart? or would it be better if we keep it separate?
>>>>>> [image: image.png]
>>>>>>
>>>>> How do you propose to merge both? I would also suggest using a stacked
>>>>> bar chart on the right. And format from bytes to MBs.
>>>>>
>>>>>> [image: image.gif]
>>>>>>
>>>>>
>>>> Currently, I have implemented like this:
>>>> [image: image.png]
>>>> So, I was thinking of adding one more column for total space for each
>>>> disk.
>>>> Regarding the stacked bar chart, we will need to increase the height of
>>>> the default chart container; otherwise, the proportion of different
>>>> categories won't be clearly visible in some cases.
>>>> And I believe that if we use a stacked bar chart, there won't be a need
>>>> to provide total space details, as the height of that stacked bar will be
>>>> nothing but the total space, right?
>>>>
>>> I don't think we'll need to increase the height though. Even if you use
>>> stacks, they will show total for each drive and not total available space.
>>>
>>
>> Ahh yes, users won't be able to see the absolute total value. So should I
>> change it to a stacked bar with 3 categories then?
>>
> I would suggest keeping the pie chart and making the stacks of used and
> unused. If possible please keep the pie chart colors different from bar
> chart.
>
Ok, sure I'll do it.

On Fri, 25 Aug 2023 at 11:56, Aditya Toshniwal <
aditya(dot)toshniwal(at)enterprisedb(dot)com> wrote:

> Hi Sahil,
> Can you please share the rebased patch?
>
Please find the attached patch with recent changes. It doesn't include this
stacked bar, but it contains things suggested in the second review, and I
also tried to resolve the tooltip issue. Let me know if it's working
correctly.
I have also pushed these changes here:
https://github.com/Sahil1479/pgadmin4/tree/system_stats [Branch:
system_stats]

I will share the final patch with a detailed summary of all the things that
have been changed once I complete this stacked/pie chart and a few more
refinements.

Thank you,
Sahil

Attachment Content-Type Size
system_stats.patch application/octet-stream 108.9 KB

In response to

Responses

Browse pgadmin-hackers by date

  From Date Subject
Next Message Sahil Harpal 2023-08-25 08:11:33 Re: Pgadmin4 System Stats Extension Design
Previous Message Akshay Joshi 2023-08-25 07:22:05 [pgadmin-org/pgadmin4] c87e92: Update release note