summaryrefslogtreecommitdiff
path: root/docs/examples
diff options
context:
space:
mode:
Diffstat (limited to 'docs/examples')
-rw-r--r--docs/examples/jarmon_example_recipes.js11
1 files changed, 11 insertions, 0 deletions
diff --git a/docs/examples/jarmon_example_recipes.js b/docs/examples/jarmon_example_recipes.js
index aa42d6f..7acfa8d 100644
--- a/docs/examples/jarmon_example_recipes.js
+++ b/docs/examples/jarmon_example_recipes.js
@@ -58,5 +58,16 @@ jarmon.CHART_RECIPES_COLLECTD = {
['data/interface/if_octets-wlan0.rrd', 'rx', 'Receive', 'bit/s', function (v) { return v*8; }]
],
options: jQuery.extend(true, {}, jarmon.Chart.BASE_OPTIONS)
+ },
+
+ 'droprate': {
+ title: 'Ping Droprate',
+ data: [
+ ['data/ping/ping_droprate-google.com.rrd', 0,
+ 'google.com', '%', function (v) { return v*100; }],
+ ['data/ping/ping_droprate-softlayer.com.rrd', 0,
+ 'softlayer.com', '%', function (v) { return v*100; }]
+ ],
+ options: jQuery.extend(true, {}, jarmon.Chart.BASE_OPTIONS)
}
};