我正在尝试将apiman内部的通用Elasticsearch与Grafana连接起来,以图形方式查看apiman指标。
这是我要查看的索引
健康状况索引pri rep docs.count docs.deleted store.size
黄色打开apiman_metrics 5 1 1408926 0 295.7mb 295.7mb
Grafan要求一个
索引名称= apiman_metrics
时间字段名称=“我不确定是否使用过:requestStart”
它正常连接,但是以某种方式在创建图形时显示错误
“ SearchPhaseExecutionException [无法执行阶段[查询],所有分片均失败; shardFailures {[OA3jhtOqQoesMel_14vP2w] [apiman_metrics] [0]:SearchParseException [[apiman_metrics] [0]:从[-1],尺寸[0]:解析失败[无法解析源
索引内的数据-
{ “ _index”:“ apiman_metrics”, “ _type”:“请求”, “ _id”:“ AWbT04tIyZUJ85kWtI7-”, “ _score”:1 “_资源”: { “ requestStart”:“ 2018-11-02T11:49:07 + 0200”, “ requestEnd”:“ 2018-11-02T11:49:08 + 0200”, “ requestDuration”:465, “ apiStart”:“ 2018-11-02T11:49:07 + 0200”, “ apiEnd”:“ 2018-11-02T11:49:08 + 0200”, “ apiDuration”:339, “ url”:“ https://localhost:8001/apiman-gateway/catalog/1.0/userintenttypes”, “ resource”:“ / userintenttypes”, “ method”:“ GET”, “ apiOrgId”:“ Optima”, “ apiId”:“目录”, “ apiVersion”:“ 1.0”, “ responseCode”:200, “ responseMessage”:“确定”, “失败”:错误, “ failureCode”:0, “错误”:错误, “ bytesUploaded”:0, “下载的字节数”:653 “属性”:{} }