简体   繁体   English

如何在 Grafana 中使用独立于时间范围过滤器的变量(用于过滤数据的下拉菜单)创建弹性搜索仪表板

[英]How to create a Elastic Search dashboard in Grafana with variable (dropdown to filter data) independent of Time Range Filter

I have created a Variable in Grafana 6.6 to provide filter dropdown option to user.我在 Grafana 6.6 中创建了一个变量来为用户提供过滤器下拉选项。 I am using Elastic Search datasource.我正在使用弹性搜索数据源。 But the dropdown lists are coming filtered by time range .How we can make it independent of time range , in other words I don't want to apply time range filter for that variable .但是下拉列表是按时间范围过滤的。我们如何使其独立于时间范围,换句话说,我不想为该变量应用时间范围过滤器。

In my knowledge, you can't skip the time range since grafana is specifically designed to display timeseries data.据我所知,您不能跳过时间范围,因为 grafana 专门用于显示时间序列数据。 Though, a not so efficient workaround i can suggest is to use a sufficient time range in the dashboard time picker to get all the variables and use relative time range to display data in your panels individually.不过,我建议的一个不太有效的解决方法是在仪表板时间选择器中使用足够的时间范围来获取所有变量,并使用相对时间范围在面板中单独显示数据。 As i said, not so efficient.正如我所说,效率不高。

Do mention if you find an actual solution to the problem.如果您找到问题的实际解决方案,请务必提及。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM