Transformer function is not passed to RrdQuery
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/
> 'google.com', '%', function (v) { return v*100; }],
> ['data/
> 'softlayer.com', '%', function (v) { return v*100; }]
> ],
> options: jQuery.extend(true, {}, jarmon.
> },
>
> 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
Related branches
Changed in jarmon: | |
milestone: | none → 11.10 |
status: | New → Confirmed |
Changed in jarmon: | |
status: | Confirmed → Fix Committed |
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.