6dd25efce8930f5ef3abb4d8ab846f6f8dec430f
[project/luci.git] / applications / luci-app-statistics / luasrc / statistics / rrdtool / definitions / load.lua
1 -- Copyright 2008 Freifunk Leipzig / Jo-Philipp Wich <xm@leipzig.freifunk.net>
2 -- Licensed to the public under the Apache License 2.0.
3
4 module("luci.statistics.rrdtool.definitions.load", package.seeall)
5
6 function rrdargs( graph, plugin, plugin_instance, dtype )
7
8         return {
9                 title = "%H: Load", vlabel = "Load",
10                 y_min = "0",
11                 units_exponent = "0",
12                 number_format = "%5.2lf", data = {
13                         sources = {
14                                 load = { "shortterm", "midterm", "longterm" }
15                         },
16
17                         options = {
18                                 load__shortterm = { color = "ff0000", title = "1 minute", noarea = true },
19                                 load__midterm   = { color = "ff6600", title = "5 minutes", noarea = true },
20                                 load__longterm  = { color = "ffaa00", title = "15 minutes", noarea = true }
21                         }
22                 }
23         }
24 end