# Find Ratio Between Two Metrics

**URL:** https://discuss.elastic.co/t/find-ratio-between-two-metrics/52153
**Category:** Kibana
**Created:** [June 8, 2016, 6:11am UTC](https://discuss.elastic.co/t/find-ratio-between-two-metrics/52153 "2016-06-08T06:11:34Z")
**Posts on this page:** 6
**Page:** 2

<div class="post-metadata">

### Author: ![JuanCarniglia](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/juancarniglia/32/11154_2.png) [@JuanCarniglia](https://discuss.elastic.co/u/JuanCarniglia)
#### Post date: [August 31, 2016, 2:27pm UTC](https://discuss.elastic.co/t/find-ratio-between-two-metrics/52153/21 "2016-08-31T14:27:27Z")

</div>

Your custom vis should be very simple then. Take two Metric Aggs, and divide them, showing the result. No need for buckets.

---

<div class="post-metadata">

### Author: ![Jeremy\_Colton](https://avatars.discourse-cdn.com/v4/letter/j/51bf81/32.png) [@Jeremy\_Colton](https://discuss.elastic.co/u/Jeremy_Colton)
#### Post date: [August 31, 2016, 2:30pm UTC](https://discuss.elastic.co/t/find-ratio-between-two-metrics/52153/22 "2016-08-31T14:30:08Z")

</div>

I haven't written a custom vis before. I was hoping for something so basic that Kibana provided it. Javascript skills-permitting, I guess I can get my hands dirty. Any tutorials you recommend I read?

---

<div class="post-metadata">

### Author: ![JuanCarniglia](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/juancarniglia/32/11154_2.png) [@JuanCarniglia](https://discuss.elastic.co/u/JuanCarniglia)
#### Post date: [August 31, 2016, 2:35pm UTC](https://discuss.elastic.co/t/find-ratio-between-two-metrics/52153/23 "2016-08-31T14:35:05Z")

</div>

There is one tutorial around there, that I have used as a starting point:

> **[Writing Kibana 4 Plugins – Basics](https://www.timroes.de/2015/12/02/writing-kibana-4-plugins-basics/)**
>
> This tutorial series explains how to create own Kibana plugins. This first part
> explains the basics.

Apart from that, take a look at my github ([https://github.com/JuanCarniglia](https://github.com/JuanCarniglia)) perhaps you can get an example or two from there.

---

<div class="post-metadata">

### Author: ![Benjamin\_F](https://avatars.discourse-cdn.com/v4/letter/b/7ea924/32.png) [@Benjamin\_F](https://discuss.elastic.co/u/Benjamin_F)
#### Post date: [February 3, 2017, 1:46pm UTC](https://discuss.elastic.co/t/find-ratio-between-two-metrics/52153/24 "2017-02-03T13:46:01Z")

</div>

Hi guys,

Something new about this topic?  
It's always not possible to make something like this in scripted field ?

```
(sum of disk usage) / (sum of disk size).

```

Thanks !  
Have a nice day.

---

<div class="post-metadata">

### Author: ![TechWatching](https://avatars.discourse-cdn.com/v4/letter/t/90ced4/32.png) [@TechWatching](https://discuss.elastic.co/u/TechWatching)
#### Post date: [May 24, 2017, 3:34pm UTC](https://discuss.elastic.co/t/find-ratio-between-two-metrics/52153/25 "2017-05-24T15:34:11Z")

</div>

This plugin [https://github.com/ommsolutions/kibana\_ext\_metrics\_vis](https://github.com/ommsolutions/kibana_ext_metrics_vis) allows you to to such things.

---

<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: [July 6, 2017, 1:31pm UTC](https://discuss.elastic.co/t/find-ratio-between-two-metrics/52153/26 "2017-07-06T13:31:41Z")

</div>



[Previous page](https://discuss.elastic.co/t/find-ratio-between-two-metrics/52153.md?page=1)
