# Netflow bandwidth usage in gauge or metric

**URL:** <https://discuss.elastic.co/t/netflow-bandwidth-usage-in-gauge-or-metric/205031>\
**Category:** Kibana\
**Created:** [October 24, 2019, 9:34am UTC](https://discuss.elastic.co/t/netflow-bandwidth-usage-in-gauge-or-metric/205031 "2019-10-24T09:34:11Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![jquintard](https://avatars.discourse-cdn.com/v4/letter/j/ce73a5/32.png) [@jquintard](https://discuss.elastic.co/u/jquintard)\
**Post date:** [October 24, 2019, 9:34am UTC](https://discuss.elastic.co/t/netflow-bandwidth-usage-in-gauge-or-metric/205031/1 "2019-10-24T09:34:11Z")

</div>

It's very easy to make a bandwidth graph with a timelion expression from netflow values :

`.es(index=filebeat-*, metric='sum:network.bytes').divide(1048576).scale_interval('1s').title('MB per second')`

But how to make a gauge or a simple metric with the same calculating ? Is this possible ?

---

<div class="post-metadata">

**Author:** ![Brandon\_Kobel](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/brandon_kobel/32/14829_2.png) [@Brandon\_Kobel](https://discuss.elastic.co/u/Brandon_Kobel)\
**Post date:** [October 24, 2019, 5:28pm UTC](https://discuss.elastic.co/t/netflow-bandwidth-usage-in-gauge-or-metric/205031/2 "2019-10-24T17:28:59Z")

</div>

Hey @jquintard, Timelion don't allow you to do metric or gauge visualizations, you'll have to use one of the other visualizations, like the "Gauge" visualization below:

 ![33%20AM](https://us1.discourse-cdn.com/elastic/original/3X/e/3/e3f429b7f571851047d1377bc2110e2fee3db55e.png)

Unfortunately, a majority of the other visualizations won't allow you to as easily do `.divide(1048576)`. You can however use [Scripted Fields](https://www.elastic.co/guide/en/kibana/current/scripted-fields.html) to do simple conversions on the raw-fields pre-aggregation.

[TSVB](https://www.elastic.co/guide/en/kibana/current/TSVB.html) also allows you to do some math on the outputs.

If you're looking for some inspiration or prior-art, the [sample data](https://www.elastic.co/guide/en/kibana/current/tutorial-sample-data.html) includes some Visualizations which are similar to your needs.

---

<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:** [November 21, 2019, 5:37pm UTC](https://discuss.elastic.co/t/netflow-bandwidth-usage-in-gauge-or-metric/205031/3 "2019-11-21T17:37:58Z")

</div>

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