df.lua 767 B

123456789101112131415161718192021222324252627282930313233343536373839
  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.df", package.seeall)
  4. function rrdargs( graph, plugin, plugin_instance, dtype )
  5. return {
  6. title = "%H: Disk space usage on %pi",
  7. vlabel = "Bytes",
  8. number_format = "%5.1lf%sB",
  9. data = {
  10. instances = {
  11. df_complex = { "free", "used", "reserved" }
  12. },
  13. options = {
  14. df_complex_free = {
  15. color = "00ff00",
  16. overlay = false,
  17. title = "free"
  18. },
  19. df_complex_used = {
  20. color = "ff0000",
  21. overlay = false,
  22. title = "used"
  23. },
  24. df_complex_reserved = {
  25. color = "0000ff",
  26. overlay = false,
  27. title = "reserved"
  28. }
  29. }
  30. }
  31. }
  32. end