通过Dashboard页面的Settings选项,可以进入Dashboard的配置页面并且选择Variables子菜单。 用户需要指定变量的名称,后续用户就可以通过$variable_name的形式引用该变量。 当Prometheus同时采集了多个主机节点的监控样本数据时,用户希望能够手动选择并查看其中特定主机的监控数据。这时我们需要使用Query类型的变量。 这里我们为Dash...
On Dashboard Load:会使整个dashboard加载变慢,需要使变量查询完成,dashboard才初始化。 On Time Range Change:如果变量选项查询包含time range筛选器或依赖于dashboard time range,则仅将其设置为实时范围更改。 Query:数据源的查询表达式。 Regex:Regex to filter or capture specific parts of the names return b...
除了Panel, Row这些对象以外,Grafana还允许用户为Dashboard定义Templating variables(模板参数),从而实现可以与用户动态交互的Dashboard页面。同时Grafana通过JSON数据结构管理了整个Dasboard的定义,因此这些Dashboard也是非常方便进行共享的。Grafana还专门为Dashboard提供了一个共享服务: https://grafana.com/dashboards通过该...
Refresh 有两个值可以选择:On Dashboard Load(在 Dashboard 加载时更新)、On Time Range Change(在时间范围变更的时候更新)。 Query:查询表达式,不同的数据源查询表达式都不同。 Regex:正则表达式,用来对抓取到的数据进行过滤,默认不过滤。 Sort:排序,对下拉框中的变量值做排序,默认是 disable,表示查询结果是怎样...
What happened: labels_values or variable query do not respect time range choosen in dashboard What you expected to happen: in variable i have all possibilite value in time range from dashboard Environment: Grafana version: 9.1.7 Data source type & version: prometheus OS Grafana is installed ...
Hide 隐藏该变量的下拉选择框,即在Dashboard中不展示。 Type 定义变量类型。 4、新建Query变量 说明:tag值需要通过查询得到,所以要新建Query变量。 如图, General中 填写 Name, Type选择 Query, Data source options Data source选择刚新建的变量 $dataSource,以保持变量“联动”,Refresh 设置为On Time Range Change...
On Dashboard Load:会使整个dashboard加载变慢,需要使变量查询完成,dashboard才初始化。 On Time Range Change:如果变量选项查询包含time range筛选器或依赖于dashboard time range,则仅将其设置为实时范围更改。 Query:数据源的查询表达式。 Regex:Regex to filter or capture specific parts of the names return ...
On Dashboard Load-每次仪表板加载时查询数据源。这会减慢仪表板的加载速度,因为在初始化仪表板之前需要完成变量查询。 On Time Range Change-在仪表板时间范围更改时查询数据源。仅当您的变量选项查询包含时间范围过滤器或取决于仪表板时间范围时,才使用此选项。
I am trying to write a script that stores the current utcOffset in a dashboard variable, since I need to pass to a query. I am trying to use the Business Text panel for that. When we change the time zone in the dashboard, the time range does not actually change until, the actual...
Hide 隐藏该变量的下拉选择框,即在Dashboard中不展示。 Type 定义变量类型。 4、新建Query变量 说明:tag值需要通过查询得到,所以要新建Query变量。 如图, General中 填写 Name, Type选择 Query, Data source options Data source选择刚新建的变量 $dataSource,以保持变量“联动”,Refresh 设置为On Time Range Change...