Can a Business Table "discover" columns to be displayed based on resultset?

Hello,

While assessing grafana business table I am wondering whether this plugin allow for a flexible/variable number of columns depdending on query results (which is a standard behaviour in the basic table).

As per my understanding and tests columns need to be identified in the dashboard configuration and cannot automatically adapt to the resultset.

  • Is this understanding correct ?
  • Is there any plan to allow this kind of flexibility in business tables ?

  • What Grafana version and what operating system are you using?
    Grafana 13.1
  • What are you trying to achieve?
    Build/display tables with dynamic number of columns depending on data fetched through an opensearch query
  • How are you trying to achieve it?
    Use a grafana business table to display results of an opensearch ppl query that would return in variable number of columns/information depending on context (context being defined through a dashboard variable populated through a data link when opening dashboard from another dashboard)
  • What happened?
    I cannot find a way to configure the business table to display all columns/fields returned by the query
  • What did you expect to happen?
    Being provided with all avaialble fields in te business table
  • Can you copy/paste the configuration(s) that you are having problems with?
    N/A
  • Did you receive any errors in the Grafana UI or in related logs? If so, please tell us exactly what they were.
    N/A
  • Did you follow any online instructions? If so, what is the URL?
    Plugin documentation on grafana site : Business Table | Grafana Plugins documentation

Kind regards
Denis

Nop - different use case. the Grafana stock “Table” is what you’re after for that use-case.

Business Table will require a manually defined columns (1-by-1).

Anything stopping you from using the native “Table” plugin instead?

Hello,

Thx for your confirmation.

I am assessing business tables in order to bring server-side pagination over large resultsets
(which was a feature highlighted in business tables)

Would ootb table plugin be in a position to provide such a feature (server side pagination) ?

Kind Regards
Denis

A quick Google search suggests it doesn’t seem so.

But pretty certain the native table supports “lazy loading” so not sure if this suffices.

Else, you can always use “LIMIT” function from the query itself to control the volume of records queried.

Hi Denis,

The native Table panel’s built in pagination is client-side → it fetches the full query result and paginates the rows in the browser. The pagination setting doesn’t limit the data returned by the query.

Business Table has a Query pagination mode that fetches only the records needed for the current page. It uses dashboard variables (pageIndex, offset and pageSize, depending on your data source), which your query must use to implement pagination. A Total Count Field setting lets the panel show the number of pages. See the
Business Table pagination documentation

For your requirements →

Native Table: adapts to the fields returned by the query, but its built in pagination is client side.
Business Table: supports query-driven server side pagination, but its columns must be configured in advance.

If you need server side pagination, Business Table is worth testing with your OpenSearch PPL query. The current version (3.6.8) requires Grafana 12.3.0 or later, so it covers your 13.1.