# How to build visualization for average bandwidth utilization of a an interface/port

**URL:** <https://discuss.elastic.co/t/how-to-build-visualization-for-average-bandwidth-utilization-of-a-an-interface-port/234459>\
**Category:** Kibana\
**Created:** [May 27, 2020, 5:37am UTC](https://discuss.elastic.co/t/how-to-build-visualization-for-average-bandwidth-utilization-of-a-an-interface-port/234459 "2020-05-27T05:37:52Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![PraveenKT](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/praveenkt/32/35483_2.png) [@PraveenKT](https://discuss.elastic.co/u/PraveenKT)\
**Post date:** [May 27, 2020, 5:37am UTC](https://discuss.elastic.co/t/how-to-build-visualization-for-average-bandwidth-utilization-of-a-an-interface-port/234459/1 "2020-05-27T05:37:52Z")

</div>

I am snmp polling WAN interface of firewall getting input and output bytes. How do i create average of 5 minute, 1 hour and 1day average graphs?

i have the snmp polling and netflow 9 interface utilization data.

---

<div class="post-metadata">

**Author:** ![wylie](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/wylie/32/81794_2.png) [@wylie](https://discuss.elastic.co/u/wylie)\
**Post date:** [June 23, 2020, 7:27pm UTC](https://discuss.elastic.co/t/how-to-build-visualization-for-average-bandwidth-utilization-of-a-an-interface-port/234459/2 "2020-06-23T19:27:16Z")

</div>

There are two different questions that you might be asking, so I will try to give both answers. You should probably use TSVB for this kind of data. If the values are _monotonically increasing_, then you should use the "Positive rate" function to calculate the average increase per interval. Then, this is the conditional part:

- You might want to set the overall interval to 5 min, 1 hour, or 1 day- by default this will give you something like "Rate per 5 min" or "Rate per 1 hour" but you can scale this using the "Positive Rate" function to something like "Rate per 1 min over a 5 min period", or "Rate per 1 hour over a 1 day period"- this is basically sub-dividing the interval into smaller chunks
- Instead of sub-dividing intervals, you might want to smooth out a smaller interval into the 5-min average using the Moving Average. In this case, I would suggest that you don't use Positive Rate, and instead use the Moving Average of the Average.

---

<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 21, 2020, 7:27pm UTC](https://discuss.elastic.co/t/how-to-build-visualization-for-average-bandwidth-utilization-of-a-an-interface-port/234459/3 "2020-07-21T19:27:24Z")

</div>

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