我尝试将apiman内部的通用Elasticsearch与Grafana连接,以图形方式查看apiman指标 .

这是我想要查看的索引

Health 状况索引pri rep docs.count docs.deleted store.size

黄色开放apiman_metrics 5 1 1408926 0 295.7mb 295.7mb

格拉凡问道

索引名称= apiman_metrics
时间字段名称= "I was not sure so used : requestStart"

它正常连接但不知何故在创建图形时它显示错误

“SearchPhaseExecutionException [无法执行阶段[查询],所有分片都失败; shardFailures {[OA3jhtOqQoesMel_14vP2w] [apiman_metrics] [0]:SearchParseException [[apiman_metrics] [0]:from [-1],size [0]:Parse Failure [无法解析源码

索引内的数据 -

{"_index":"apiman_metrics","_type":"request","_id":"AWbT04tIyZUJ85kWtI7-","_score":1,"_source":{"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 ", "资源": " / userintenttypes ", "方法": " GET ", " apiOrgId ": " Optima ", " apiId ": " catalog ", " apiVersion ": " 1.0 ", " responseCode ": 200, " responseMessage ": " OK ", " failure ": false, " failureCode ": 0, " error ": false, " bytesUploaded ": 0, " bytesDownloaded ": 653, " attributes“:{}}