1 module("luci.statistics.rrdtool.definitions.interface", package.seeall)
3 function rrdargs( graph, host, plugin, plugin_instance )
10 -- draw this diagram for each data instance
13 -- diagram data description
15 -- defined sources for data types, if ommitted assume a single DS named "value" (optional)
17 if_octets = { "tx", "rx" }
20 -- special options for single data lines
23 total = true, -- report total amount of bytes
24 color = "00ff00" -- tx is green
28 flip = true, -- flip rx line
29 total = true, -- report total amount of bytes
30 color = "0000ff" -- rx is blue
42 -- draw this diagram for each data instance
45 -- diagram data description
48 types = { "if_packets", "if_errors" },
50 -- defined sources for data types
52 if_packets = { "tx", "rx" },
53 if_errors = { "tx", "rx" }
56 -- special options for single data lines
58 -- processed packets (tx DS)
60 overlay = true, -- don't summarize
61 total = true, -- report total amount of bytes
62 color = "00ff00" -- processed tx is green
65 -- processed packets (rx DS)
67 overlay = true, -- don't summarize
68 flip = true, -- flip rx line
69 total = true, -- report total amount of bytes
70 color = "0000ff" -- processed rx is blue
73 -- packet errors (tx DS)
75 overlay = true, -- don't summarize
76 total = true, -- report total amount of packets
77 color = "ff5500" -- tx errors are orange
80 -- packet errors (rx DS)
82 overlay = true, -- don't summarize
83 flip = true, -- flip rx line
84 total = true, -- report total amount of packets
85 color = "ff0000" -- rx errors are red
91 return { traffic, packets }