5a2ac53ca70b1ec7f9ce6208b364d9fa7644d90a
[project/luci.git] / applications / luci-statistics / luasrc / statistics / rrdtool / definitions / cpu / cpu.lua
1 module("luci.statistics.rrdtool.definitions.cpu.cpu",package.seeall)
2
3 function rrdargs( graph, host, plugin, plugin_instance, dtype )
4
5         return {
6                 title  = "Prozessorauslastung",
7                 vlabel = "%",
8
9                 data = {
10                         instances = {
11                                 cpu = { "idle", "nice", "system", "user" }
12                         },
13
14                         options = {
15                                 cpu_idle      = { color = "ffffff" },
16                                 cpu_nice      = { color = "00e000" },
17                                 cpu_user      = { color = "0000ff" },
18                                 cpu_wait      = { color = "ffb000" },
19                                 cpu_system    = { color = "ff0000" },
20                                 cpu_softirq   = { color = "ff00ff" },
21                                 cpu_interrupt = { color = "a000a0" },
22                                 cpu_steal     = { color = "000000" }
23                         }
24                 }
25         }
26 end