luci-app-statistics: add advice about data directory permissions
[project/luci.git] / applications / luci-app-statistics / luasrc / statistics / rrdtool / definitions / df.lua
1 -- Copyright 2008 Freifunk Leipzig / Jo-Philipp Wich <jow@openwrt.org>
2 -- Licensed to the public under the Apache License 2.0.
3
4 module("luci.statistics.rrdtool.definitions.df", package.seeall)
5
6 function rrdargs( graph, plugin, plugin_instance, dtype )
7
8         return {
9                 title = "%H: Disk space usage on %pi",
10                 vlabel = "Bytes",
11                 number_format = "%5.1lf%sB",
12
13                 data = {
14                         instances = {
15                                 df_complex = { "free", "used", "reserved" }
16                         },
17
18                         options = {
19                                 df_complex_free = {
20                                         color = "00ff00",
21                                         overlay = false,
22                                         title = "free"
23                                 },
24
25                                 df_complex_used = {
26                                         color = "ff0000",
27                                         overlay = false,
28                                         title = "used"
29                                 },
30
31                                 df_complex_reserved = {
32                                         color = "0000ff",
33                                         overlay = false,
34                                         title = "reserved"
35                                 }
36                         }
37                 }
38         }
39 end