Kibana 简明教程
Kibana - Working With Guage And Goal
仪表可视化会告知你针对数据考虑的指标如何落在预定义范围内。
A gauge visualization tells how your metric considered on the data falls in the predefined range.
目标可视化描述了你的目标以及你的数据指标如何向该目标进行。
A goal visualization tells about your goal and how your metric on your data progresses towards the goal.
Working with Gauge
如需开始使用 Gauge,请转到可视化,并从 Kibana UI 中选择可视化选项卡。
To start using Gauge, go to visualization and select Visualize tab from Kibana UI.

点击 Gauge,并选择你想要使用的索引。
Click on Gauge and select the index you want to use.

我们将在 medicalvisits-26.01.2019 索引上工作。
We are going to work on medicalvisits-26.01.2019 index.
选择 2017 年 2 月的时间范围。
Select the time range of February 2017

现在你可以选择指标和存储桶聚合。
Now you can select the metric and bucket aggregation.

我们选择了计数作为指标聚合。
We have selected the metric aggregation as Count.

我们选择的桶聚合是条件和选择的字段是 Number_Home_Visits。
The bucket aggregation we have selected Terms and the field selected is Number_Home_Visits.
从数据选项选项卡中,选择显示在下面的选项−
From Data options Tab, the options selected are shown below −

Gauge 类型可以是圆或弧。我们选择了弧,其他所有值均为默认值。
Gauge Type can be in the form of circle or arc. We have selected as arc and rest all others as the default values.
我们添加的预定义范围显示在这里 −
The predefined range we have added is shown here −

选择的颜色是绿到红。
The colour selected is Green To Red.
现在,点击分析按钮,以 Gauge 形式查看可视化,如下所示 −
Now, click on Analyze Button to see the visualization in the form of Gauge as shown below −

Working with Goal
转到可视化选项卡,并选择目标,如下所示 −
Go to Visualize Tab and select Goal as shown below −

选择目标并选择索引。
Select Goal and select the index.
使用 medicalvisits-26.01.2019 作为索引。
Use medicalvisits-26.01.2019 as the index.

选择指标聚合和桶聚合。
Select the metric aggregation and bucket aggregation.
Bucket Aggregation

我们选择了条件作为桶聚合,字段是 Number_Home_Visits。
We have selected Terms as the bucket aggregation and field is Number_Home_Visits.
选择的选项如下 −
The options selected are as follows −

选择的范围如下 −
The Range selected is as follows −

点击分析,您会看到目标显示如下 −
Click on Analyze and you see the goal displayed as follows −
