contextswitch.lua 537 B

1234567891011121314151617181920212223
  1. -- Licensed to the public under the Apache License 2.0.
  2. module("luci.statistics.rrdtool.definitions.contextswitch",package.seeall)
  3. function rrdargs( graph, plugin, plugin_instance, dtype )
  4. return {
  5. title = "%H: Context switches",
  6. alt_autoscale = true,
  7. vlabel = "Switches/s",
  8. number_format = "%5.0lf",
  9. data = {
  10. types = { "contextswitch" },
  11. sources = {
  12. contextswitch = { "value" }
  13. },
  14. options = {
  15. contextswitch = { color = "0000ff", title = "Context switches", noarea=true, overlay=true }
  16. }
  17. }
  18. }
  19. end