3 Luci statistics - processes plugin diagram definition
4 (c) 2008 Freifunk Leipzig / Jo-Philipp Wich <xm@leipzig.freifunk.net>
6 Licensed under the Apache License, Version 2.0 (the "License");
7 you may not use this file except in compliance with the License.
8 You may obtain a copy of the License at
10 http://www.apache.org/licenses/LICENSE-2.0
16 module("luci.statistics.rrdtool.definitions.processes", package.seeall)
18 function rrdargs( graph, plugin, plugin_instance, dtype )
22 title = "%H: Processes",
23 vlabel = "Processes/s",
27 "sleeping", "running", "paging", "blocked", "stopped", "zombies"
32 ps_state_sleeping = { color = "0000ff" },
33 ps_state_running = { color = "008000" },
34 ps_state_paging = { color = "ffff00" },
35 ps_state_blocked = { color = "ff5000" },
36 ps_state_stopped = { color = "555555" },
37 ps_state_zombies = { color = "ff0000" }
43 title = "%H: CPU time used by %pi",
47 ps_cputime = { "syst", "user" }
65 title = "%H: Threads and processes belonging to %pi",
70 ps_count = { "threads", "processes" }
74 ps_count__threads = { color = "00ff00" },
75 ps_count__processes = { color = "0000bb" }
81 title = "%H: Page faults in %pi",
82 vlabel = "Pagefaults",
86 ps_pagefaults = { "minflt", "majflt" }
90 ps_pagefaults__minflt = { color = "ff0000" },
91 ps_pagefaults__majflt = { color = "ff5500" }
97 title = "%H: Virtual memory size of %pi",
100 number_format = "%5.1lf%sB",
102 types = { "ps_rss" },
105 ps_rss = { color = "0000ff" }