bd002e12facddcadac21b22907592c1d3d8894ae
[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                 data = {
7                         instances = { 
8                                 cpu = { "idle", "user", "system", "nice" }
9                         },
10
11                         options = {
12                                 cpu_idle      = { color = "ffffff" },
13                                 cpu_nice      = { color = "00e000" },
14                                 cpu_user      = { color = "0000ff" },
15                                 cpu_wait      = { color = "ffb000" },
16                                 cpu_system    = { color = "ff0000" },
17                                 cpu_softirq   = { color = "ff00ff" },
18                                 cpu_interrupt = { color = "a000a0" },
19                                 cpu_steal     = { color = "000000" }
20                         }
21                 }
22         }
23 end