Hide grafana panels based on selected template variable

13,761

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

Share:
13,761
Andrey
Author by

Andrey

Cysca company's employee.

Updated on July 20, 2022

Comments

  • Andrey
    Andrey over 1 year

    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?

  • pba
    pba about 3 years
    It doesn't work. See the note on Grafana doc - Repeat panels or rows: "Note: Repeating panels require variables to have one or more items selected; you cannot repeat a panel zero times to hide it."