I am trying to develop kind of dropdown list with metrics and accordingly to selected metric specific panel supposed to appear on dashboard. And vice versa if metric unselected, panel should be hidden.
I found the link http://search-devops.com/m/k2DBF2DCJuDrRWa1&subj=Re+grafana+Hide+panels+based+on+results where 2015-10-26 it was told that it is not possible to do.
But maybe some functionality was developed until that time which allow to show/hide grafana panel?
Asked
Active
Viewed 1.8k times
11
-
This is not applicable for a graph, but a table panel can be almost invisible when there is no data (this is my use case, which is close to this question): 1. set panel as transparent; 2. set no panel title; 3. add a HTML text panel with `` (at least for a old table table panel, not sure with new React table panel). – pba Jan 05 '21 at 14:57
1 Answers
4
Need to use Repeat Panel option for graph https://github.com/grafana/grafana/issues/1888 and configure a variable in templating options http://docs.grafana.org/reference/templating/#utilizing-template-variables-with-repeating-panels-and-repeating-rows

Andrey
- 317
- 1
- 5
- 19
-
3It doesn't work. See the note on [Grafana doc - Repeat panels or rows](https://grafana.com/docs/grafana/latest/variables/repeat-panels-or-rows/#repeating-panels): "Note: Repeating panels require variables to have one or more items selected; you cannot repeat a panel zero times to hide it." – pba Jan 05 '21 at 11:14