# How to fetch cache hit ratio metrics

**URL:** <https://discuss.aerospike.com/t/how-to-fetch-cache-hit-ratio-metrics/6207>\
**Category:** General Discussion\
**Tags:** query, index\
**Created:** [April 28, 2019, 3:46pm UTC](https://discuss.aerospike.com/t/how-to-fetch-cache-hit-ratio-metrics/6207 "2019-04-28T15:46:38Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![sarath\_kumar](https://sea1.discourse-cdn.com/flex019/user_avatar/discuss.aerospike.com/sarath_kumar/32/1148_2.png) [@sarath\_kumar](https://discuss.aerospike.com/u/sarath_kumar)\
**Post date:** [April 28, 2019, 3:46pm UTC](https://discuss.aerospike.com/t/how-to-fetch-cache-hit-ratio-metrics/6207/1 "2019-04-28T15:46:38Z")

</div>

Does Aerospike provides metrics of cache hit ratio for each namespace if Aerospike is used only for caching?

---

<div class="post-metadata">

**Author:** ![kporter](https://sea1.discourse-cdn.com/flex019/user_avatar/discuss.aerospike.com/kporter/32/515_2.png) [@kporter](https://discuss.aerospike.com/u/kporter)\
**Post date:** [April 28, 2019, 4:21pm UTC](https://discuss.aerospike.com/t/how-to-fetch-cache-hit-ratio-metrics/6207/2 "2019-04-28T16:21:44Z")

</div>

For persistent namespaces, Aerospike caches recent writes, the percent of reads read from this cache can be found here: [https://www.aerospike.com/docs/reference/metrics/#cache\_read\_pct](https://www.aerospike.com/docs/reference/metrics/#cache_read_pct).

If you want the ratio of successful reads to attempted reads see: [https://www.aerospike.com/docs/reference/metrics/#client\_read\_success](https://www.aerospike.com/docs/reference/metrics/#client_read_success), [https://www.aerospike.com/docs/reference/metrics/#client\_read\_error](https://www.aerospike.com/docs/reference/metrics/#client_read_error).

---

<div class="post-metadata">

**Author:** ![sarath\_kumar](https://sea1.discourse-cdn.com/flex019/user_avatar/discuss.aerospike.com/sarath_kumar/32/1148_2.png) [@sarath\_kumar](https://discuss.aerospike.com/u/sarath_kumar)\
**Post date:** [April 29, 2019, 1:33am UTC](https://discuss.aerospike.com/t/how-to-fetch-cache-hit-ratio-metrics/6207/3 "2019-04-29T01:33:45Z")

</div>

Thanks.

What’s the difference between client\_read\_not\_found and client\_read\_error metric? Can we treat client\_read\_not\_found as cache miss? https://www.aerospike.com/docs/reference/metrics/#client\_read\_not\_foundhttps://www.aerospike.com/docs/reference/metrics/#client\_read\_error

---

<div class="post-metadata">

**Author:** ![kporter](https://sea1.discourse-cdn.com/flex019/user_avatar/discuss.aerospike.com/kporter/32/515_2.png) [@kporter](https://discuss.aerospike.com/u/kporter)\
**Post date:** [April 29, 2019, 3:04am UTC](https://discuss.aerospike.com/t/how-to-fetch-cache-hit-ratio-metrics/6207/4 "2019-04-29T03:04:20Z")

</div>

Error is all errors, not\_found are just requests that result in not found.
