# How can i conditionally change the unit of metric values i receive?

**URL:** <https://discuss.elastic.co/t/how-can-i-conditionally-change-the-unit-of-metric-values-i-receive/303576>\
**Category:** Kibana\
**Created:** [April 29, 2022, 7:26am UTC](https://discuss.elastic.co/t/how-can-i-conditionally-change-the-unit-of-metric-values-i-receive/303576 "2022-04-29T07:26:30Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![ASHOK\_PRIYADARSHI](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/ashok_priyadarshi/32/105022_2.png) [@ASHOK\_PRIYADARSHI](https://discuss.elastic.co/u/ASHOK_PRIYADARSHI)\
**Post date:** [April 29, 2022, 7:26am UTC](https://discuss.elastic.co/t/how-can-i-conditionally-change-the-unit-of-metric-values-i-receive/303576/1 "2022-04-29T07:26:30Z")

</div>

How can I change the unit as per my metric path ?

---

<div class="post-metadata">

**Author:** ![jsanz](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/jsanz/32/53734_2.png) [@jsanz](https://discuss.elastic.co/u/jsanz)\
**Post date:** [May 5, 2022, 1:32pm UTC](https://discuss.elastic.co/t/how-can-i-conditionally-change-the-unit-of-metric-values-i-receive/303576/2 "2022-05-05T13:32:09Z")

</div>

Not sure to understand what you mean, a bit more detail and maybe even examples would be appreciated.

In the meantime, have you checked Elasticsearch [runtime fields](https://www.elastic.co/guide/en/elasticsearch/reference/current/runtime.html)? It may be the feature you are looking for.

---

<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:** [June 2, 2022, 1:32pm UTC](https://discuss.elastic.co/t/how-can-i-conditionally-change-the-unit-of-metric-values-i-receive/303576/3 "2022-06-02T13:32:34Z")

</div>

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