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-08 21:51:55 +00:00
|
|
|
|
2011-11-28 03:26:59 +00:00
|
|
|
module("luci.statistics.rrdtool.definitions.load", package.seeall)
|
2008-06-08 21:51:55 +00:00
|
|
|
|
2019-03-07 13:50:17 +00:00
|
|
|
function item()
|
|
|
|
return luci.i18n.translate("System Load")
|
|
|
|
end
|
|
|
|
|
2008-06-08 21:51:55 +00:00
|
|
|
function rrdargs( graph, plugin, plugin_instance, dtype )
|
|
|
|
|
|
|
|
return {
|
2011-11-28 03:26:59 +00:00
|
|
|
title = "%H: Load", vlabel = "Load",
|
2012-12-14 21:53:03 +00:00
|
|
|
y_min = "0",
|
|
|
|
units_exponent = "0",
|
2011-11-28 03:26:59 +00:00
|
|
|
number_format = "%5.2lf", data = {
|
2008-06-08 21:51:55 +00:00
|
|
|
sources = {
|
|
|
|
load = { "shortterm", "midterm", "longterm" }
|
|
|
|
},
|
|
|
|
|
|
|
|
options = {
|
2019-11-14 11:34:58 +00:00
|
|
|
load__shortterm = {
|
|
|
|
color = "ff0000",
|
|
|
|
title = "1 minute",
|
|
|
|
noarea = true,
|
|
|
|
weight = 3
|
|
|
|
},
|
|
|
|
load__midterm = {
|
|
|
|
color = "ff6600",
|
|
|
|
title = "5 minutes",
|
|
|
|
overlay = true,
|
|
|
|
weight = 1
|
|
|
|
},
|
|
|
|
load__longterm = {
|
|
|
|
color = "ffaa00",
|
|
|
|
title = "15 minutes",
|
|
|
|
overlay = true,
|
|
|
|
weight = 2
|
|
|
|
}
|
2008-06-08 21:51:55 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
end
|