# Can query api but no records returned

**URL:** https://forum.opensearch.org/t/can-query-api-but-no-records-returned/4435
**Category:** Performance Analyzer
**Created:** [December 18, 2020, 3:44pm UTC](https://forum.opensearch.org/t/can-query-api-but-no-records-returned/4435 "2020-12-18T15:44:19Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![drewlander](https://avatars.discourse-cdn.com/v4/letter/d/d9b06d/32.png) [@drewlander](https://forum.opensearch.org/u/drewlander)
#### Post date: [December 18, 2020, 3:44pm UTC](https://forum.opensearch.org/t/can-query-api-but-no-records-returned/4435/1 "2020-12-18T15:44:19Z")

</div>

I have a recently installed 1.12.0 cluster (3 nodes). I am evaluating using OD instead of Elasticsearch “main”.  
I installed perf-top-linux, but saw no metrics in the dashboard.  
I saw in the logs for opendistro-performance-analyzer.service errors about batch\_metrics\_enabled.conf missing. I followed [This Issue](https://github.com/opendistro-for-elasticsearch/performance-analyzer/issues/229) and the errors are gone. However, I still get no metrics in perftop.  
I can query the api just fine, however I noticed the “records” field is empty:

`curl -XGET 'http://localhost:9600/_opendistro/_performanceanalyzer/metrics?metrics=Latency,CPU_Utilization&agg=avg,max&dim=ShardID&nodes=all'`  
I get results, but no records:

```
{
  "local": {
    "timestamp": 1608305825000,
    "data": {
      "fields": [
        {
          "name": "ShardID",
          "type": "VARCHAR"
        },
        {
          "name": "Latency",
          "type": "DOUBLE"
        },
        {
          "name": "CPU_Utilization",
          "type": "DOUBLE"
        }
      ],
      "records": []
    }
  }
}

```

Am I Missing something obvious?  
thank you

---

<div class="post-metadata">

### Author: ![kris](https://sea1.discourse-cdn.com/flex019/user_avatar/forum.opensearch.org/kris/32/2208_2.png) [@kris](https://forum.opensearch.org/u/kris)
#### Post date: [February 7, 2023, 5:17pm UTC](https://forum.opensearch.org/t/can-query-api-but-no-records-returned/4435/2 "2023-02-07T17:17:47Z")

</div>


