Connecting elasticsearch inside apiman with Grafana

Im trying to connect the generic Elasticsearch inside of apiman with Grafana to view the apiman metrics graphically.

This is the index i want to view

health status index pri rep docs.count docs.deleted store.size

yellow open apiman_metrics 5 1 1408926 0 295.7mb 295.7mb

Grafana asks for an:

Index name = apiman_metrics
Time field name= “I was not sure so used : requestStart”. the Index data is seen below. Im not sure if there is any time pattern to this Index.

It connected normally but somehow when creating any graphs it shows an error

"SearchPhaseExecutionException[Failed to execute phase [query], all shards failed; shardFailures {[OA3jhtOqQoesMel_14vP2w][apiman_metrics][0]: SearchParseException[[apiman_metrics][0]: from[-1],size[0]: Parse Failure [Failed to parse source

Data inside the index -

{ “_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”, “resource”: “/userintenttypes”, “method”: “GET”, “apiOrgId”: “Optima”, “apiId”: “catalog”, “apiVersion”: “1.0”, “responseCode”: 200, “responseMessage”: “OK”, “failure”: false, “failureCode”: 0, “error”: false, “bytesUploaded”: 0, “bytesDownloaded”: 653, “attributes”: {} }

Any help ?

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.