Add graphs for sqm data collected by 'sqm_collect.sh' An overall sqm graph displays bandwidth (Kb/s), Backlog (Bytes) and drops for each supported qdisc. Sqm-cake supports cake's tin structure and displays many(!) graphs per tin: Bandwidth: Bandwidth (Kb/s), bandwidth threshold (Kb/s). Latency: Target latency, Peak, Average, Sparse flow latency Backlog v Drops: Backlog (Bytes), Drops, ECN marks, Ack-filter drops Flow counts: Sparse flows, Bulk flows, Unresponsive flows Fun for all the family :-) Signed-off-by: Kevin Darbyshire-Bryant <ldir@darbyshire-bryant.me.uk>
28 lines
812 B
JavaScript
28 lines
812 B
JavaScript
/* Licensed to the public under the Apache License 2.0. */
|
|
|
|
'use strict';
|
|
'require baseclass';
|
|
|
|
return baseclass.extend({
|
|
title: _('SQM'),
|
|
|
|
rrdargs: function(graph, host, plugin, plugin_instance, dtype) {
|
|
var overview = {
|
|
per_instance: false,
|
|
title: "%H: SQM qdisc %pi Overview",
|
|
rrdopts: [ "--logarithmic" ],
|
|
vlabel: " ",
|
|
alt_autoscale: true,
|
|
number_format: "%5.0lf",
|
|
data: {
|
|
types: [ "qdisc_bytes", "qdisc_backlog", "qdisc_drops" ],
|
|
options: {
|
|
qdisc_bytes: { title: "kb/s:", overlay: true, noarea: false, color: "0000ff", transform_rpn: "125,/" },
|
|
qdisc_backlog: { title: "Backlog/B:", overlay: true, noarea: true, color: "8000ff" },
|
|
qdisc_drops: { title: "Drops/s:", overlay: true, noarea: true, color: "00ffff", }
|
|
}
|
|
}
|
|
};
|
|
return [ overview ];
|
|
}
|
|
});
|