2015-01-16 22:46:42 +00:00
|
|
|
-- Copyright 2008 Freifunk Leipzig / Jo-Philipp Wich <jow@openwrt.org>
|
2015-01-16 22:38:38 +00:00
|
|
|
-- Licensed to the public under the Apache License 2.0.
|
2008-06-03 23:15:16 +00:00
|
|
|
|
2011-11-28 03:26:59 +00:00
|
|
|
module("luci.statistics.rrdtool.definitions.cpu",package.seeall)
|
2008-05-25 02:37:39 +00:00
|
|
|
|
2012-02-19 15:11:23 +00:00
|
|
|
function rrdargs( graph, plugin, plugin_instance, dtype )
|
2008-05-25 02:37:39 +00:00
|
|
|
|
2008-05-28 17:51:15 +00:00
|
|
|
return {
|
2011-11-28 03:26:59 +00:00
|
|
|
title = "%H: Processor usage on core #%pi",
|
2012-12-14 21:53:03 +00:00
|
|
|
y_min = "0",
|
2011-11-28 03:26:59 +00:00
|
|
|
vlabel = "Percent",
|
|
|
|
number_format = "%5.1lf%%",
|
2008-05-28 17:51:15 +00:00
|
|
|
data = {
|
2008-05-28 22:34:26 +00:00
|
|
|
instances = {
|
|
|
|
cpu = { "idle", "user", "system", "nice" }
|
2008-05-28 17:51:15 +00:00
|
|
|
},
|
2008-05-25 02:37:39 +00:00
|
|
|
|
2008-05-28 17:51:15 +00:00
|
|
|
options = {
|
|
|
|
cpu_idle = { color = "ffffff" },
|
|
|
|
cpu_nice = { color = "00e000" },
|
|
|
|
cpu_user = { color = "0000ff" },
|
|
|
|
cpu_wait = { color = "ffb000" },
|
|
|
|
cpu_system = { color = "ff0000" },
|
|
|
|
cpu_softirq = { color = "ff00ff" },
|
|
|
|
cpu_interrupt = { color = "a000a0" },
|
|
|
|
cpu_steal = { color = "000000" }
|
|
|
|
}
|
2008-05-25 02:37:39 +00:00
|
|
|
}
|
2008-05-28 17:51:15 +00:00
|
|
|
}
|
2008-05-25 02:37:39 +00:00
|
|
|
end
|