sqm.js 812 B

12345678910111213141516171819202122232425262728
  1. /* Licensed to the public under the Apache License 2.0. */
  2. 'use strict';
  3. 'require baseclass';
  4. return baseclass.extend({
  5. title: _('SQM'),
  6. rrdargs: function(graph, host, plugin, plugin_instance, dtype) {
  7. var overview = {
  8. per_instance: false,
  9. title: "%H: SQM qdisc %pi Overview",
  10. rrdopts: [ "--logarithmic" ],
  11. vlabel: " ",
  12. alt_autoscale: true,
  13. number_format: "%5.0lf",
  14. data: {
  15. types: [ "qdisc_bytes", "qdisc_backlog", "qdisc_drops" ],
  16. options: {
  17. qdisc_bytes: { title: "kb/s:", overlay: true, noarea: false, color: "0000ff", transform_rpn: "125,/" },
  18. qdisc_backlog: { title: "Backlog/B:", overlay: true, noarea: true, color: "8000ff" },
  19. qdisc_drops: { title: "Drops/s:", overlay: true, noarea: true, color: "00ffff", }
  20. }
  21. }
  22. };
  23. return [ overview ];
  24. }
  25. });