luci/applications/luci-app-statistics/htdocs/luci-static/resources/statistics/rrdtool/definitions/sqm.js

29 lines
812 B
JavaScript
Raw Normal View History

/* 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 ];
}
});