# Compression ratio

**URL:** <https://discuss.elastic.co/t/compression-ratio/164603>\
**Category:** Elasticsearch\
**Created:** [January 17, 2019, 9:49am UTC](https://discuss.elastic.co/t/compression-ratio/164603 "2019-01-17T09:49:19Z")\
**Posts on this page:** 1\
**Showing post:** 3

<div class="post-metadata">

**Author:** ![amitavmohanty01](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/amitavmohanty01/32/58017_2.png) [@amitavmohanty01](https://discuss.elastic.co/u/amitavmohanty01)\
**Post date:** [January 17, 2019, 1:08pm UTC](https://discuss.elastic.co/t/compression-ratio/164603/3 "2019-01-17T13:08:37Z")

</div>

> [@DavidTurner](#):
>
> Elasticsearch exposes various metrics, such as the size of an index on disk, in the [indices stats API](https://www.elastic.co/guide/en/elasticsearch/reference/current/indices-stats.html#indices-stats), so you can calculate a compression ratio by dividing this metric by the total size of the documents that have been indexed.

I agree. However, as per another [thread](https://discuss.elastic.co/t/ingest-volume/157245/2), Elasticsearch does not track incoming data volume. So, please suggest how to get the total size of documents that have been indexed.

---

_[View the full topic](https://discuss.elastic.co/t/compression-ratio/164603)._
