通过Dashboard页面的Settings选项,可以进入Dashboard的配置页面并且选择Variables子菜单。 用户需要指定变量的名称,后续用户就可以通过$variable_name的形式引用该变量。 当Prometheus同时采集了多个主机节点的监控样本数据时,用户希望能够手动选择并查看其中特定主机的监控数据。这时我们需要使用Query类型的变量。 这里我们为Dash...
Refresh 有两个值可以选择:On Dashboard Load(在 Dashboard 加载时更新)、On Time Range Change(在时间范围变更的时候更新)。 Query:查询表达式,不同的数据源查询表达式都不同。 Regex:正则表达式,用来对抓取到的数据进行过滤,默认不过滤。 Sort:排序,对下拉框中的变量值做排序,默认是 disable,表示查询结果是怎样...
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...
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...
点击new dashboard 按钮 可以看到有两个按钮,一个先新建查询条件,一个是先选择展示的视图。 可以任意选择一个进入,编辑过程中可以切换。 使用官方的模版 如果是常用的监控,我们没有必要 一步步的构建我们的视图和查询条件,可以直接使用官方的模版或者 其他用户已经编辑好的模版。
Hide 隐藏该变量的下拉选择框,即在Dashboard中不展示。 Type 定义变量类型。 4、新建Query变量 说明:tag值需要通过查询得到,所以要新建Query变量。 如图, General中 填写 Name, Type选择 Query, Data source options Data source选择刚新建的变量 $dataSource,以保持变量“联动”,Refresh 设置为On Time Range Change...
This dashboard in Grafana Playpasses the ad hoc filter variableFilterswith the filter valuejob = metrictank/tsdb-gw. Time range control using the URL You can control the time range of a dashboard by providing the following query parameters in the dashboard URL: ...
配置方便:支持Dashboard、Panel、Row等组合,且支持折线图、柱状图等多种图例 图表漂亮:可以选择暗黑系或纯白系,你也可以自己定义颜色 模板很多:grafana模板很活跃,有很多用户贡献的面板,直接导入就能用 支持多种数据源:grafana作为展示面板,支持很多数据源,如Graphite、ES、Prometheus等 ...
When entering my dashboard using variables in the URL that do not exist in the variable dropdown list, the dashboard shows "No Data" in the panel which is correct. However, the variables are set to refresh "on time range change" and the dashboard is set to refresh every 5 seconds. ...
Hide 隐藏该变量的下拉选择框,即在Dashboard中不展示。 Type 定义变量类型。 4、新建Query变量 说明:tag值需要通过查询得到,所以要新建Query变量。 如图, General中 填写 Name, Type选择 Query, Data source options Data source选择刚新建的变量 $dataSource,以保持变量“联动”,Refresh 设置为On Time Range Change...