Different transformer functions on one RRD bug

Bug #1188220 reported by Petr P on 2013-06-06
This bug affects 3 people
Affects Status Importance Assigned to Milestone
Richard Wall

Bug Description

I wanted to plot a network diagram with Tx-data heading up (above 0) and Rx-data heading down (below 0) for more clarity. Unfortunately I've got both Tx and Rx in the same RRD file, so I got something like:

['data/network/if_octets.rrd', 'tx', 'Transmit', 'bit/s', function (v) { return v*8; }],
['data/network/if_octets.rrd', 'rx', 'Receive', 'bit/s', function (v) { return -v*8; }]

This results in both tx/rx heading up, but this:

['data/network/if_octets.rrd', 'tx', 'Transmit', 'bit/s', function (v) { return -v*8; }],
['data/network/if_octets.rrd', 'rx', 'Receive', 'bit/s', function (v) { return v*8; }]

...results in both rx/tx heading down.

It seems Jarmon applies transformer function only for the first time (considering one RRD file) and ignores it after.

Is it easily repairable?

Thanks in advance


Related branches

Petr P (trubus) on 2013-06-06
description: updated
description: updated
Richard Wall (richardw) wrote :

Hi Petr,

I didn't get a notification about your bug report but I just I got your email. Sorry for the delayed reply.

It looks like you're right; only the first transformer function gets applied.

I'll see if I can fix it by making transformer an argument of RrdQueryDsProxy rather than RrdQuery.

I'll keep you posted.

Thanks for your bug report and thanks for using Jarmon!


Changed in jarmon:
assignee: nobody → Richard Wall (richardw)
importance: Undecided → Medium
status: New → Confirmed
L29Ah (zl29ah) wrote :

Any updates on this?

To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers