Different transformer functions on one RRD bug

Bug #1188220 reported by Petr P
16
This bug affects 3 people
Affects Status Importance Assigned to Milestone
Jarmon
Confirmed
Medium
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

Peter

Related branches

Petr P (trubus)
description: updated
description: updated
Revision history for this message
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!

-RichardW.

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

Any updates on this?

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

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.