Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Grafana Table Panel 'clickable' and use it to drill down to a more detailed view

Tags:

events

grafana

Is it possible to have a Table Panel in Grafana, and when you click on a row, it shows a graph from another set of time series?

I see there is a feature request for it, but I'm not sure it's available yet https://github.com/grafana/grafana/issues/5481

Looking for any suggestions on making the rows in a Table Panel 'clickable' and use it to drill down to a more detailed view (another dashboard using Template variables). Currently displaying a summary of several servers as rows in a Table Panel and we want to select an individual row (i.e a server) to drill down to a more detailed Dashboard.

Any ways to do this?

Thanks

like image 337
Carmellose Avatar asked Mar 08 '23 13:03

Carmellose


2 Answers

You can achieve this also in 4.x by defining a link for a table column (in the Column Styles section under Visualization). The link can refer to another dashboard and embed current cell's value (or other cell in the same row) as a parameter.

For example the link Url can be: /d/c9xaXx5Zz/tree-node?var-datasource=$datasource&var-interval_id=${__cell_1}&from=$__from&to=$__to&var-path=root

In Grafana 6 or above you can preserve the time range filter using the $__from and $__to built-in vars.

The available built-in variables to access cell contents are not well documented, but they can be found by hovering over the (i) icon of the Url in the table panel.

More info on built-in vars: https://grafana.com/docs/reference/templating/#global-built-in-variables

like image 50
dux2 Avatar answered Apr 25 '23 10:04

dux2


The feature request you linked to is a duplicate of this one which links to this Pull Request. The PR was recently merged so it is available now as a nightly build and will be included in the upcoming 5.0.0 release in September/October.

like image 39
Daniel Lee Avatar answered Apr 25 '23 12:04

Daniel Lee