根据选定的模板变量隐藏grafana面板

And*_*rey 7 panel templating grafana

我正在尝试使用指标开发一种下拉列表,并相应地选择应该出现在仪表板上的特定于指标的面板.反之亦然,如果未选择公制,则应隐藏面板.
我发现链接http://search-devops.com/m/k2DBF2DCJuDrRWa1&subj=Re+grafana+Hide+panels+based+on+results,2015-10-26它被告知不可能这样做.
但也许某些功能是在那个时候开发的,它允许显示/隐藏grafana面板?

谢谢

And*_*rey 4

需要对图表使用“重复面板”选项https://github.com/grafana/grafana/issues/1888并在模板选项中配置变量http://docs.grafana.org/reference/templated/#utilizing-template-variables -带有重复面板和重复行

  • 这不起作用。请参阅 [Grafana 文档 - 重复面板或行](https://grafana.com/docs/grafana/latest/variables/repeat-panels-or-rows/#repeating-panels) 上的注释:“注意:重复面板需要变量来选择一个或多个项目;您不能重复面板零次来隐藏它。” (4认同)