问题描述
我正在尝试开发一种带有指标的下拉列表,并据此开发应该显示在仪表板上的特定于指标的特定面板.反之亦然,如果未选择指标,则应隐藏面板.
我找到了链接 http://search -devops.com/m/k2DBF2DCJuDrRWa1&subj=Re+grafana+Hide+panels+based+on+results 在2015年10月26日被告知无法执行.
但是也许在那之前已经开发了一些功能,可以显示/隐藏grafana面板?
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?
谢谢
推荐答案
需要为图形 https://github.com/grafana/grafana/issues/1888 并在模板选项中配置变量 http://docs.grafana.org/reference/templating/#utilizing-template-variables-with-repeating-panels-and -重复行
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
这篇关于根据所选模板变量隐藏grafana面板的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!