summaryrefslogtreecommitdiff
path: root/docs/examples/jarmon_example_recipes.js
diff options
context:
space:
mode:
authorRichard Wall <richard@largo>2011-08-08 00:52:07 +0100
committerRichard Wall <richard@largo>2011-08-08 00:52:07 +0100
commit8501f32d8f67fd53bbc682ba9bfadd0ce5f39345 (patch)
treee8bd86b5ce6eca30f76e93fe67723c00a9a22624 /docs/examples/jarmon_example_recipes.js
parentd385e6ba4727b26c7e659f302544a1a8e117e76a (diff)
Add a transformer option to allow operations on the data from RRD files - eg Network octets * 8 > bits
Diffstat (limited to 'docs/examples/jarmon_example_recipes.js')
-rw-r--r--docs/examples/jarmon_example_recipes.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/docs/examples/jarmon_example_recipes.js b/docs/examples/jarmon_example_recipes.js
index a2e822e..aa42d6f 100644
--- a/docs/examples/jarmon_example_recipes.js
+++ b/docs/examples/jarmon_example_recipes.js
@@ -54,8 +54,8 @@ jarmon.CHART_RECIPES_COLLECTD = {
'interface': {
title: 'Wlan0 Throughput',
data: [
- ['data/interface/if_octets-wlan0.rrd', 'tx', 'Transmit', 'B/s'],
- ['data/interface/if_octets-wlan0.rrd', 'rx', 'Receive', 'B/s']
+ ['data/interface/if_octets-wlan0.rrd', 'tx', 'Transmit', 'bit/s', function (v) { return v*8; }],
+ ['data/interface/if_octets-wlan0.rrd', 'rx', 'Receive', 'bit/s', function (v) { return v*8; }]
],
options: jQuery.extend(true, {}, jarmon.Chart.BASE_OPTIONS)
}