# Create graph on intervals of latency measurements showing percentage

**URL:** <https://discuss.elastic.co/t/create-graph-on-intervals-of-latency-measurements-showing-percentage/177951>\
**Category:** Kibana\
**Created:** [April 23, 2019, 6:23am UTC](https://discuss.elastic.co/t/create-graph-on-intervals-of-latency-measurements-showing-percentage/177951 "2019-04-23T06:23:31Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![JoostvD](https://avatars.discourse-cdn.com/v4/letter/j/76d3ee/32.png) [@JoostvD](https://discuss.elastic.co/u/JoostvD)\
**Post date:** [April 23, 2019, 6:23am UTC](https://discuss.elastic.co/t/create-graph-on-intervals-of-latency-measurements-showing-percentage/177951/1 "2019-04-23T06:23:31Z")

</div>

Hello all,

I am new to the ELK stack and want to use it to create graphs on latency information. For each performed action the latency information is logged. The goal is to create a graph on this latency information showing:

1. All measured latency values are divided over certain intervals. In this case the width of each interval is 1 msec. As a result we have a counter, per interval, on how many times the measured latency was between the lower and the upper limit of the interval.
2. Using the counted values we can calculate a percentage per interval.
3. The sum of the percentages is also calculated.

Up to now I have written dedicated python code which is less flexible and prone to error. The current graph is attached. So using ELK seems to make a lot of sense. Unfortunately we have not succeeded in creating the desired graph using Kibana.

 ![LatencySample](https://us1.discourse-cdn.com/elastic/original/3X/4/4/44a29473fe3d41b83ce4baa95eb61833c86f2d04.jpeg)

---

<div class="post-metadata">

**Author:** ![bhavyarm](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/bhavyarm/32/22392_2.png) [@bhavyarm](https://discuss.elastic.co/u/bhavyarm)\
**Post date:** [April 24, 2019, 6:24pm UTC](https://discuss.elastic.co/t/create-graph-on-intervals-of-latency-measurements-showing-percentage/177951/2 "2019-04-24T18:24:49Z")

</div>

Hello,

You might not the exact same graph but I think Timeseries visual builder should help or vega viz.

Here are some resources: [https://www.elastic.co/guide/en/kibana/current/time-series-visual-builder.html](https://www.elastic.co/guide/en/kibana/current/time-series-visual-builder.html)  
[https://www.youtube.com/watch?v=CNR-4kZ6v\_E](https://www.youtube.com/watch?v=CNR-4kZ6v_E)  
[https://www.youtube.com/watch?v=CvorsH3x7Z8](https://www.youtube.com/watch?v=CvorsH3x7Z8)  
[https://www.youtube.com/watch?v=xkluflzhpAw](https://www.youtube.com/watch?v=xkluflzhpAw)

> **[Learn to build rich Vega Visualizations in Kibana](https://www.elastic.co/blog/getting-started-with-vega-visualizations-in-kibana)**
>
> Vega is a powerful language for creating visualizations, and now you can use it in Kibana. In this blog post, learn to use Vega declarative language to build rich new visualizations from your Elasticsearch data.

Hope this helps.

Thanks,  
Bhavya

---

<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:** [May 22, 2019, 6:25pm UTC](https://discuss.elastic.co/t/create-graph-on-intervals-of-latency-measurements-showing-percentage/177951/3 "2019-05-22T18:25:03Z")

</div>

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