Transformer function is not passed to RrdQuery

Bug #846377 reported by Richard Wall
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Jarmon
Fix Committed
High
Richard Wall

Bug Description

On 10 September 2011 00:30, Andrew Galloway wrote:
> Found Jarmon the other day and have been attempting to use it to create
> a display of various information and really liking what it has let me
> build -- one thing; the collectd 'ping' plugin seems to provide % as a
> value of 0.00 to 1.00, not 000 to 100 like CPU reports does, for
> example. I could probably finagle the data on the collectd side one way
> or another, but I noted on the Throughput graph that you added the
> ability to use "function (v) { return v*8; }" to manipulate the data
> there to turn octets into bits.
>
> I attempted the same on the ping-dropprate rrd, and it does not seem to
> be functioning. I've refreshed the browser, restarted Apache, etc, and
> it just keeps showing the range on the graph as 0.00 to 1.25 (whereas it
> should be 0-100 now) and the data points inside the same, with a top
> value of 1.00 (which should be showing 100%?). Example from my config
> file:
>
> 'droprate': {
> title: 'Ping Droprate',
> data: [
> ['data/ping/ping_droprate-google.com.rrd', 'value',
> 'google.com', '%', function (v) { return v*100; }],
> ['data/ping/ping_droprate-softlayer.com.rrd', 'value',
> 'softlayer.com', '%', function (v) { return v*100; }]
> ],
> options: jQuery.extend(true, {}, jarmon.Chart.BASE_OPTIONS)
> },
>
> My question is, is this code not working properly because of a bug, or
> (and I suspect this may be more the case) am I doing something stupid?
> :)
>
> If you have a moment to set me straight either way, I'd appreciate it.
> Thank you,
> - Andrew

Richard Wall (richardw)
Changed in jarmon:
milestone: none → 11.10
status: New → Confirmed
Revision history for this message
Richard Wall (richardw) wrote :

Andrew,

Thanks for the report. Yes, it is a bug. I did the transformer feature in a rush and hadn't properly tested it.

Try the jarmon.js file from the branch above and let me know if it fixes your problem.

-RichardW.

Richard Wall (richardw)
Changed in jarmon:
status: Confirmed → Fix Committed
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.