根据所选模板变量隐藏grafana面板 [英] Hide grafana panels based on selected template variable

查看:1288
本文介绍了根据所选模板变量隐藏grafana面板的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试开发一种带有指标的下拉列表,并据此开发应该显示在仪表板上的特定于指标的特定面板.反之亦然,如果未选择指标,则应隐藏面板.
我找到了链接 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?

谢谢

推荐答案

需要为图形

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面板的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆