This looks ok.
342277 Octets per second → arroud 2.6MBit/s. You need to convert this in to Bits per second before the yield Metric.
Or you can also convert the input values from Octets to Bits. I asume one Octet eq eight Bits
on the get_rate
try:
inputvalue = get_rate(value_store, 'nokia_inbound_octets', now, float(x[9]) * 8, raise_overflow=False)
except GetRateError:
inputvalue = 0
try:
outboundvalue = get_rate(value_store, 'nokia_outbound_octets', now, float(x[10]) * 8, raise_overflow=False)
except GetRateError:
outboundvalue = 0
or on the yield Metric
yield Metric("nokia_inbound_octets", float(inputvalue) * 8)
yield Metric("nokia_outbound_octets", float(outboundvalue) * 8)