在 Kibana 中使用 Vega-lite 创建箱线图
Create box plot using Vega-lite in Kibana
我想创建一个箱形图,显示某个 REST 端点的执行持续时间在某个时间段内的分布情况。我想要很多盒子 - 例如一个 10 分钟。
我每 3 秒推送一次有关 REST 端点的信息。这是此类数据的示例。关于 /books 端点的示例信息。时间段(3s)内的调用总数,平均执行时间等。
{
"_index": "metrics-2018-09",
"_type": "doc",
"_id": "LBIqIWYBcLDRF6t2O8JR",
"_version": 1,
"_score": null,
"_source": {
"@timestamp": "2018-09-28T17:11:47.751Z",
"name": "http_server_requests",
"type": "timer",
"exception": "None",
"method": "GET",
"status": "200",
"uri": "/books",
"count": 0,
"sum": 0,
"mean": 0,
"max": 0
},
"fields": {
"@timestamp": [
"2018-09-28T17:11:47.751Z"
]
},
"highlight": {
"uri": [
"/@kibana-highlighted-field@books@/kibana-highlighted-field@"
]
},
"sort": [
1538154707751
]
}
如何为其创建箱线图?
当我尝试输入 "mark" 时:"boxplot" Kibana 提示:“无效的标记类型 "boxplot"”
那里得到了答案
The boxplot mark is being added as part of vega-lite 3.0, and we're currently running version 2.4 in Kibana.
我想创建一个箱形图,显示某个 REST 端点的执行持续时间在某个时间段内的分布情况。我想要很多盒子 - 例如一个 10 分钟。
我每 3 秒推送一次有关 REST 端点的信息。这是此类数据的示例。关于 /books 端点的示例信息。时间段(3s)内的调用总数,平均执行时间等。
{
"_index": "metrics-2018-09",
"_type": "doc",
"_id": "LBIqIWYBcLDRF6t2O8JR",
"_version": 1,
"_score": null,
"_source": {
"@timestamp": "2018-09-28T17:11:47.751Z",
"name": "http_server_requests",
"type": "timer",
"exception": "None",
"method": "GET",
"status": "200",
"uri": "/books",
"count": 0,
"sum": 0,
"mean": 0,
"max": 0
},
"fields": {
"@timestamp": [
"2018-09-28T17:11:47.751Z"
]
},
"highlight": {
"uri": [
"/@kibana-highlighted-field@books@/kibana-highlighted-field@"
]
},
"sort": [
1538154707751
]
}
如何为其创建箱线图?
当我尝试输入 "mark" 时:"boxplot" Kibana 提示:“无效的标记类型 "boxplot"”
The boxplot mark is being added as part of vega-lite 3.0, and we're currently running version 2.4 in Kibana.