load.js 822 B

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. /* Licensed to the public under the Apache License 2.0. */
  2. 'use strict';
  3. 'require baseclass';
  4. return baseclass.extend({
  5. title: _('System Load'),
  6. rrdargs: function(graph, host, plugin, plugin_instance, dtype) {
  7. return {
  8. title: "%H: Load",
  9. vlabel: "Load",
  10. y_min: "0",
  11. y_max: "0.2",
  12. units_exponent: "0",
  13. number_format: "%5.2lf",
  14. data: {
  15. sources: {
  16. load: [ "shortterm", "midterm", "longterm" ]
  17. },
  18. options: {
  19. load__shortterm: {
  20. color: "ff0000",
  21. title: "1 minute",
  22. noarea: true,
  23. weight: 3
  24. },
  25. load__midterm: {
  26. color: "ff6600",
  27. title: "5 minutes",
  28. overlay: true,
  29. weight: 1
  30. },
  31. load__longterm: {
  32. color: "ffaa00",
  33. title: "15 minutes",
  34. overlay: true,
  35. weight: 2
  36. }
  37. }
  38. }
  39. };
  40. }
  41. });