# How do gauges and ranges work?

**URL:** <https://discuss.elastic.co/t/how-do-gauges-and-ranges-work/116797>\
**Category:** Kibana\
**Created:** [January 24, 2018, 4:37am UTC](https://discuss.elastic.co/t/how-do-gauges-and-ranges-work/116797 "2018-01-24T04:37:53Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Sjaak01](https://avatars.discourse-cdn.com/v4/letter/s/73ab20/32.png) [@Sjaak01](https://discuss.elastic.co/u/Sjaak01)\
**Post date:** [January 24, 2018, 4:37am UTC](https://discuss.elastic.co/t/how-do-gauges-and-ranges-work/116797/1 "2018-01-24T04:37:53Z")

</div>

Hi,

The gauge and range option are making no sense to me and there is nothing in the Docs that explains how this is supposed to work.

Lets say my metric is the SUM of data usage, so I get something like 30MB or whatever. With the default range setting the whole gauge turns red, which makes no sense as the ranges are divided as 0 - 50, 50 - 75, 75 - 100. Common sense would assume the result to be within 0 - 50.

The gauge and range don't appear to use the field type to their thing.

How is this supposed to work?

---

<div class="post-metadata">

**Author:** ![Nathan\_Reese](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/nathan_reese/32/84829_2.png) [@Nathan\_Reese](https://discuss.elastic.co/u/Nathan_Reese)\
**Post date:** [January 24, 2018, 5:06pm UTC](https://discuss.elastic.co/t/how-do-gauges-and-ranges-work/116797/2 "2018-01-24T17:06:15Z")

</div>

The provided ranges are just a starting point. You have to adjust the ranges to make sense for your data set. I think part of the confusion is coming from the fact that your gauge is displaying formatted values like '30MB'. The raw value is really 30,000,000 (more or less). You will need to set your range values to the raw value and not the formatted value.

Below is an example showing the usage of range and numbers formatted by `Bytes`. Any `Sum of bytes` between 0 and 26000000 are green and any `Sum of bytes` between 26000000 and 1000000000 are red.

 ![image](https://us1.discourse-cdn.com/elastic/original/3X/4/2/426685678a7bc5830d4dfadbc5e36f79c1222209.png)

---

<div class="post-metadata">

**Author:** ![Sjaak01](https://avatars.discourse-cdn.com/v4/letter/s/73ab20/32.png) [@Sjaak01](https://discuss.elastic.co/u/Sjaak01)\
**Post date:** [January 25, 2018, 8:46am UTC](https://discuss.elastic.co/t/how-do-gauges-and-ranges-work/116797/3 "2018-01-25T08:46:29Z")

</div>

Hi Nathan,

Thanks, that makes sense. I will try it out.

Shouldn't this sort of basic information be in the Docs? It makes sense when you put it like that but as you can format field values its not strange to think those formatted values automatically apply to ranges too I think.

---

<div class="post-metadata">

**Author:** ![Nathan\_Reese](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/nathan_reese/32/84829_2.png) [@Nathan\_Reese](https://discuss.elastic.co/u/Nathan_Reese)\
**Post date:** [January 25, 2018, 3:02pm UTC](https://discuss.elastic.co/t/how-do-gauges-and-ranges-work/116797/4 "2018-01-25T15:02:42Z")

</div>

Thanks for your feedback. I have created a [pull request](https://github.com/elastic/kibana/pull/16286) to update the documentation with this information.

---

<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:** [February 22, 2018, 3:02pm UTC](https://discuss.elastic.co/t/how-do-gauges-and-ranges-work/116797/5 "2018-02-22T15:02:49Z")

</div>

Closed on February 22, 2018, 3:02pm UTC

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