luci-app-statistics: add missing ACL rules
[project/luci.git] / applications / luci-app-statistics / luasrc / statistics / rrdtool / definitions / disk.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.disk", package.seeall)
5
6 function item()
7 return luci.i18n.translate("Disk Usage")
8 end
9
10 function rrdargs( graph, plugin, plugin_instance, dtype )
11
12 return {
13 {
14 title = "%H: Disk I/O operations on %pi",
15 vlabel = "Operations/s",
16 number_format = "%5.1lf%sOp/s",
17
18 data = {
19 types = { "disk_ops" },
20 sources = {
21 disk_ops = { "read", "write" },
22 },
23
24 options = {
25 disk_ops__read = {
26 title = "Reads",
27 color = "00ff00",
28 flip = false
29 },
30
31 disk_ops__write = {
32 title = "Writes",
33 color = "ff0000",
34 flip = true
35 }
36 }
37 }
38 },
39
40 {
41 title = "%H: Disk I/O bandwidth on %pi",
42 vlabel = "Bytes/s",
43 number_format = "%5.1lf%sB/s",
44
45 detail = true,
46
47 data = {
48 types = { "disk_octets" },
49 sources = {
50 disk_octets = { "read", "write" }
51 },
52 options = {
53 disk_octets__read = {
54 title = "Read",
55 color = "00ff00",
56 flip = false
57 },
58 disk_octets__write = {
59 title = "Write",
60 color = "ff0000",
61 flip = true
62 }
63 }
64 }
65 }
66 }
67 end