3 Luci configuration model for statistics - collectd rrdtool plugin configuration
4 (c) 2008 Freifunk Leipzig / Jo-Philipp Wich <xm@leipzig.freifunk.net>
6 Licensed under the Apache License, Version 2.0 (the "License");
7 you may not use this file except in compliance with the License.
8 You may obtain a copy of the License at
10 http://www.apache.org/licenses/LICENSE-2.0
16 m = Map("luci_statistics")
18 -- collectd_rrdtool config section
19 s = m:section( NamedSection, "collectd_rrdtool", "luci_statistics" )
21 -- collectd_rrdtool.enable
22 enable = s:option( Flag, "enable" )
25 -- collectd_rrdtool.datadir (DataDir)
26 datadir = s:option( Value, "DataDir" )
27 datadir.default = "/tmp"
28 datadir.rmempty = true
29 datadir.optional = true
30 datadir:depends( "enable", 1 )
32 -- collectd_rrdtool.stepsize (StepSize)
33 stepsize = s:option( Value, "StepSize" )
35 stepsize.isinteger = true
36 stepsize.rmempty = true
37 stepsize.optional = true
38 stepsize:depends( "enable", 1 )
40 -- collectd_rrdtool.heartbeat (HeartBeat)
41 heartbeat = s:option( Value, "HeartBeat" )
42 heartbeat.default = 60
43 heartbeat.isinteger = true
44 heartbeat.rmempty = true
45 heartbeat.optional = true
46 heartbeat:depends( "enable", 1 )
48 -- collectd_rrdtool.rrasingle (RRASingle)
49 rrasingle = s:option( Flag, "RRASingle" )
50 rrasingle.default = true
51 rrasingle.rmempty = true
52 rrasingle.optional = true
53 rrasingle:depends( "enable", 1 )
55 -- collectd_rrdtool.rratimespans (RRATimespan)
56 rratimespans = s:option( Value, "RRATimespans" )
57 rratimespans.default = "600 86400 604800 2678400 31622400"
58 rratimespans.rmempty = true
59 rratimespans.optional = true
60 rratimespans:depends( "enable", 1 )
62 -- collectd_rrdtool.rrarows (RRARows)
63 rrarows = s:option( Value, "RRARows" )
64 rrarows.isinteger = true
66 rrarows.rmempty = true
67 rrarows.optional = true
68 rrarows:depends( "enable", 1 )
70 -- collectd_rrdtool.xff (XFF)
71 xff = s:option( Value, "XFF" )
76 xff:depends( "enable", 1 )
78 -- collectd_rrdtool.cachetimeout (CacheTimeout)
79 cachetimeout = s:option( Value, "CacheTimeout" )
80 cachetimeout.isinteger = true
81 cachetimeout.default = 100
82 cachetimeout.rmempty = true
83 cachetimeout.optional = true
84 cachetimeout:depends( "enable", 1 )
86 -- collectd_rrdtool.cacheflush (CacheFlush)
87 cacheflush = s:option( Value, "CacheFlush" )
88 cacheflush.isinteger = true
89 cacheflush.default = 100
90 cacheflush.rmempty = true
91 cacheflush.optional = true
92 cacheflush:depends( "enable", 1 )