# Get Cluster Indexing Rate/Second via Rest API

**URL:** <https://discuss.elastic.co/t/get-cluster-indexing-rate-second-via-rest-api/357296>\
**Category:** Elasticsearch\
**Tags:** elastic-stack-monitoring\
**Created:** [April 12, 2024, 1:27pm UTC](https://discuss.elastic.co/t/get-cluster-indexing-rate-second-via-rest-api/357296 "2024-04-12T13:27:45Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![jscheitel](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/jscheitel/32/133235_2.png) [@jscheitel](https://discuss.elastic.co/u/jscheitel)\
**Post date:** [April 12, 2024, 1:27pm UTC](https://discuss.elastic.co/t/get-cluster-indexing-rate-second-via-rest-api/357296/1 "2024-04-12T13:27:45Z")

</div>

Hello - we have cluster monitoring enabled, and can see the Search and Indexing Rates and Latencies graphs on the Cluster Overview page. We need to query some indication of indexing rate or ingestion rate for display in an external system.

 ![ClusterOverview](https://us1.discourse-cdn.com/elastic/original/3X/0/c/0c15c12e64a74f20e74a07b2e9d3b500c26a6581.png)

"GET \_stats" appears to have statistics, but we are unsure how to calculate Indexing Rate/second or Indexing Latency(ms) being displayed in Cluster Overview using those values? Assuming that monitoring a change rate in total documents will only work until ILM policies start cleaning up records?

Essentially looking for guidance on easiest way to get some indication of current overall indexing rate or ingestion rate into an external system (outside of Kibana). Any guidance or recommendations are appreciated!

Thanks!

---

<div class="post-metadata">

**Author:** ![jscheitel](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/jscheitel/32/133235_2.png) [@jscheitel](https://discuss.elastic.co/u/jscheitel)\
**Post date:** [April 15, 2024, 1:23pm UTC](https://discuss.elastic.co/t/get-cluster-indexing-rate-second-via-rest-api/357296/2 "2024-04-15T13:23:49Z")

</div>

I am guessing this would be monitoring the change over time for index stats (GET \_stats) using \_all.primaries.indexing.index\_total and total.indexing.index\_total . I am going to give that a try.
