# Metric On Shard Reads and Writes

**URL:** <https://discuss.elastic.co/t/metric-on-shard-reads-and-writes/287690>\
**Category:** Elasticsearch\
**Created:** [October 26, 2021, 12:33pm UTC](https://discuss.elastic.co/t/metric-on-shard-reads-and-writes/287690 "2021-10-26T12:33:55Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![Nisar\_Adappadathil1](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/nisar_adappadathil1/32/94368_2.png) [@Nisar\_Adappadathil1](https://discuss.elastic.co/u/Nisar_Adappadathil1)\
**Post date:** [October 26, 2021, 12:33pm UTC](https://discuss.elastic.co/t/metric-on-shard-reads-and-writes/287690/1 "2021-10-26T12:33:55Z")

</div>

We have a huge cluster with **250** nodes.  
Multiple nodes go high load at various times, so want to know which shards are actually having higher **READs** and **WRITEs** so that I can see any **hot shards** are there.

How can log count of **READs** and **WRITEs** per shard? or is this already available?

---

<div class="post-metadata">

**Author:** ![warkolm](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/warkolm/32/39224_2.png) [@warkolm](https://discuss.elastic.co/u/warkolm)\
**Post date:** [October 26, 2021, 9:42pm UTC](https://discuss.elastic.co/t/metric-on-shard-reads-and-writes/287690/2 "2021-10-26T21:42:43Z")

</div>

What version are you on?  
What is the output from the `_cluster/stats?pretty&human` API?

---

<div class="post-metadata">

**Author:** ![Christian\_Dahlqvist](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/christian_dahlqvist/32/4617_2.png) [@Christian\_Dahlqvist](https://discuss.elastic.co/u/Christian_Dahlqvist)\
**Post date:** [October 27, 2021, 6:04am UTC](https://discuss.elastic.co/t/metric-on-shard-reads-and-writes/287690/3 "2021-10-27T06:04:56Z")

</div>

Which version of Elasticsearch are you using? Do you have monitoring enabled? Is there anything in the logs around the time this occurs?

---

<div class="post-metadata">

**Author:** ![Nisar\_Adappadathil1](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/nisar_adappadathil1/32/94368_2.png) [@Nisar\_Adappadathil1](https://discuss.elastic.co/u/Nisar_Adappadathil1)\
**Post date:** [October 27, 2021, 9:02pm UTC](https://discuss.elastic.co/t/metric-on-shard-reads-and-writes/287690/4 "2021-10-27T21:02:26Z")

</div>

using Elasticsearch 6.8

the output of \_cluster/stats returns the node info, segment info, docs info & the plugins used

cant share everything since its company internal. I can share specifics if want anything specific.

I want to setup a metric says me which shard has most reads and writes

---

<div class="post-metadata">

**Author:** ![Nisar\_Adappadathil1](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/nisar_adappadathil1/32/94368_2.png) [@Nisar\_Adappadathil1](https://discuss.elastic.co/u/Nisar_Adappadathil1)\
**Post date:** [November 4, 2021, 3:53pm UTC](https://discuss.elastic.co/t/metric-on-shard-reads-and-writes/287690/5 "2021-11-04T15:53:14Z")

</div>

anyway to add the below metrics

1. no of requests per Index & shard
2. latency per index & shard

---

<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:** [December 2, 2021, 3:53pm UTC](https://discuss.elastic.co/t/metric-on-shard-reads-and-writes/287690/6 "2021-12-02T15:53:22Z")

</div>

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