netdata / netdata-cloud

The public repository of Netdata Cloud. Contribute with bug reports and feature requests.
GNU General Public License v3.0
41 stars 16 forks source link

[Feat]: Enable an extra layer of nesting in TOC menu #550

Open shyamvalsan opened 1 year ago

shyamvalsan commented 1 year ago

Problem

The current TOC menu only allows one layer of nesting - this is restrictive for many use-cases - and forces metrics to be organized in sub optimal ways.

Description

Enable more layers of nesting in TOC menu for optimal metric organization.

I am hitting a blocker right now, working on the PostgreSQL monitoring use-case due to the lack of this ability.

Currently the metrics are organized like this:

image

Drawbacks of this approach:

The old (python postgres collector) approach was to have sub sections for each DB, so if you had 3 DBs you would have DB X, DB Y and DB Z but lose all sort of metric organization underneath it. Which means to find (for example) buffer cache hit ratio of DB X you need to click on DB X and then scroll through dozens of charts.

--

The approach we would like to pursue (open to better ideas) is to organize things in the following manner:

PostgreSQL 1

PostgreSQL 2

Importance

must have

Value proposition

  1. Optimal metric organization => Faster monitoring and troubleshooting

Proposed implementation

No response

shyamvalsan commented 1 year ago

cc: @sashwathn @amalkov @ralphm

As discussed in the call, in the short term we will proceed with organizing and naming the currently available sections more optimally and enabling group-by database by default for charts where this is available. This will be a workaround.

Longer term we need the feature requested in this ticket, or something similar.

shyamvalsan commented 1 year ago

@novykh how much work is it to add an extra layer of nesting in TOC menu?

novykh commented 1 year ago

It depends on the rule. I will do some refactoring the coming days, so I can add more flexibility to this

hugovalente-pm commented 6 months ago

I'm not sure this is the path we want to take at the moment, this details of DB has been brought into the composite charts with NIDL framework and all image

it seems we would be diverting from our current approach. wdyt @shyamvalsan ?