X-Git-Url: http://git.archive.openwrt.org/?a=blobdiff_plain;f=applications%2Fluci-statistics%2Fluasrc%2Fstatistics%2Frrdtool%2Fdefinitions%2Finterface.lua;fp=applications%2Fluci-statistics%2Fluasrc%2Fstatistics%2Frrdtool%2Fdefinitions%2Finterface.lua;h=35bc25b56ef1aeea677af82aeeb93fb5adcb93ba;hb=5d4191c848e568570ebd3b63358379c9861b2b02;hp=029ffe3232fd90717be7f635b7e8c6684facc42b;hpb=ef9df734c35e0d478dd7c9c03d301085fdfd3993;p=project%2Fluci.git diff --git a/applications/luci-statistics/luasrc/statistics/rrdtool/definitions/interface.lua b/applications/luci-statistics/luasrc/statistics/rrdtool/definitions/interface.lua index 029ffe323..35bc25b56 100644 --- a/applications/luci-statistics/luasrc/statistics/rrdtool/definitions/interface.lua +++ b/applications/luci-statistics/luasrc/statistics/rrdtool/definitions/interface.lua @@ -24,6 +24,8 @@ function rrdargs( graph, host, plugin, plugin_instance ) -- draw this diagram for each data instance per_instance = true, + title = "%H: Transfer on %di", + vlabel = "Bytes/s", -- diagram data description data = { @@ -36,13 +38,15 @@ function rrdargs( graph, host, plugin, plugin_instance ) options = { if_octets__tx = { total = true, -- report total amount of bytes - color = "00ff00" -- tx is green + color = "00ff00", -- tx is green + title = "Bytes (TX)" }, if_octets__rx = { flip = true, -- flip rx line total = true, -- report total amount of bytes - color = "0000ff" -- rx is blue + color = "0000ff", -- rx is blue + title = "Bytes (RX)" } } } @@ -56,6 +60,8 @@ function rrdargs( graph, host, plugin, plugin_instance ) -- draw this diagram for each data instance per_instance = true, + title = "%H: Packets on %di", + vlabel = "Packets/s", -- diagram data description data = { @@ -74,7 +80,8 @@ function rrdargs( graph, host, plugin, plugin_instance ) if_packets__tx = { overlay = true, -- don't summarize total = true, -- report total amount of bytes - color = "00ff00" -- processed tx is green + color = "00ff00", -- processed tx is green + title = "Processed (tx)" }, -- processed packets (rx DS) @@ -82,14 +89,16 @@ function rrdargs( graph, host, plugin, plugin_instance ) overlay = true, -- don't summarize flip = true, -- flip rx line total = true, -- report total amount of bytes - color = "0000ff" -- processed rx is blue + color = "0000ff", -- processed rx is blue + title = "Processed (rx)" }, -- packet errors (tx DS) if_errors__tx = { overlay = true, -- don't summarize total = true, -- report total amount of packets - color = "ff5500" -- tx errors are orange + color = "ff5500", -- tx errors are orange + title = "Errors (tx)" }, -- packet errors (rx DS) @@ -97,7 +106,8 @@ function rrdargs( graph, host, plugin, plugin_instance ) overlay = true, -- don't summarize flip = true, -- flip rx line total = true, -- report total amount of packets - color = "ff0000" -- rx errors are red + color = "ff0000", -- rx errors are red + title = "Errors (rx)" } } }