# Best practice for converting SNMP traffic metrics into a speed rate?

**URL:** <https://community.dynatrace.com/t/best-practice-for-converting-snmp-traffic-metrics-into-a-speed-rate/35646>\
**Category:** Extensions\
**Tags:** dynatrace-managed, snmp, extensions\
**Created:** [June 28, 2022, 6:59pm UTC](https://community.dynatrace.com/t/best-practice-for-converting-snmp-traffic-metrics-into-a-speed-rate/35646 "2022-06-28T18:59:13Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![AntonioSousa](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/antoniosousa/32/50_2.png) [@AntonioSousa](https://community.dynatrace.com/u/AntonioSousa)\
**Post date:** [June 28, 2022, 6:59pm UTC](https://community.dynatrace.com/t/best-practice-for-converting-snmp-traffic-metrics-into-a-speed-rate/35646/1 "2022-06-28T18:59:13Z")

</div>

When using SNMP extension v2, we get values for interface traffic in the following metrics:

com.dynatrace.extension.snmp-generic-device.if.in.octets.count

com.dynatrace.extension.snmp-generic-device.if.out.octets.count

These values are (I suppose) in bytes over a minute period. Normally, most people want to know about speed in Mbps, so I was initially multiplying that value by 8 (bytes -\>bits) and then dividing by 60 (minute → seconds).

It did make sense to me, but rapidly I found out there was a problem with it: when data started being aggregated, values stopped making sense.

So, I then did what makes even more sense: use the rate transformation, with the “:rate(s)” syntax, and multiplying by 8. Now everything seems much more correct.

Now, well I’m confident that this is the correct way to do it, I would like to ask the opinion of others working with SNMP, to get a sense if someone is doing it in a better way?

---

<div class="post-metadata">

**Author:** ![Mike\_L](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/mike_l/32/11717_2.png) [@Mike\_L](https://community.dynatrace.com/u/Mike_L)\
**Post date:** [June 29, 2022, 4:19pm UTC](https://community.dynatrace.com/t/best-practice-for-converting-snmp-traffic-metrics-into-a-speed-rate/35646/2 "2022-06-29T16:19:47Z")

</div>

I think that your way makes sense at least for what it’s worth&nbsp;😀
