load.lua 722 B

123456789101112131415161718192021222324
  1. -- Copyright 2008 Freifunk Leipzig / Jo-Philipp Wich <jow@openwrt.org>
  2. -- Licensed to the public under the Apache License 2.0.
  3. module("luci.statistics.rrdtool.definitions.load", package.seeall)
  4. function rrdargs( graph, plugin, plugin_instance, dtype )
  5. return {
  6. title = "%H: Load", vlabel = "Load",
  7. y_min = "0",
  8. units_exponent = "0",
  9. number_format = "%5.2lf", data = {
  10. sources = {
  11. load = { "shortterm", "midterm", "longterm" }
  12. },
  13. options = {
  14. load__shortterm = { color = "ff0000", title = "1 minute", noarea = true },
  15. load__midterm = { color = "ff6600", title = "5 minutes", noarea = true },
  16. load__longterm = { color = "ffaa00", title = "15 minutes", noarea = true }
  17. }
  18. }
  19. }
  20. end