# Get index level metrics

**URL:** <https://discuss.elastic.co/t/get-index-level-metrics/76886>\
**Category:** Elasticsearch\
**Created:** [March 1, 2017, 12:11am UTC](https://discuss.elastic.co/t/get-index-level-metrics/76886 "2017-03-01T00:11:44Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![akarsh\_cholaveti](https://avatars.discourse-cdn.com/v4/letter/a/ecc23a/32.png) [@akarsh\_cholaveti](https://discuss.elastic.co/u/akarsh_cholaveti)\
**Post date:** [March 1, 2017, 12:11am UTC](https://discuss.elastic.co/t/get-index-level-metrics/76886/1 "2017-03-01T00:11:44Z")

</div>

Hello,

I am writing a plugin for elastic search which gets cluster and node stats by java-api call.

For example: To get number of docs on a node, I am using nodeindicesStats.getDocs().getCount() api call to get the value.

The above api gives aggregated value of all indices on a node. Is there any api to get docs count per index on a node?

Thanks

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [March 29, 2017, 12:11am UTC](https://discuss.elastic.co/t/get-index-level-metrics/76886/2 "2017-03-29T00:11:54Z")

</div>

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