1 module("luci.statistics.rrdtool.definitions.netlink", package.seeall)
3 function rrdargs( graph, plugin, plugin_instance )
10 -- diagram data description
12 -- defined sources for data types, if ommitted assume a single DS named "value" (optional)
14 if_octets = { "tx", "rx" }
17 -- special options for single data lines
20 total = true, -- report total amount of bytes
21 color = "00ff00" -- tx is green
25 flip = true, -- flip rx line
26 total = true, -- report total amount of bytes
27 color = "0000ff" -- rx is blue
39 -- diagram data description
42 types = { "if_packets", "if_dropped", "if_errors" },
44 -- defined sources for data types
46 if_packets = { "tx", "rx" },
47 if_dropped = { "tx", "rx" },
48 if_errors = { "tx", "rx" }
51 -- special options for single data lines
53 -- processed packets (tx DS)
55 overlay = true, -- don't summarize
56 total = true, -- report total amount of bytes
57 color = "00ff00" -- processed tx is green
60 -- processed packets (rx DS)
62 overlay = true, -- don't summarize
63 flip = true, -- flip rx line
64 total = true, -- report total amount of bytes
65 color = "0000ff" -- processed rx is blue
68 -- dropped packets (tx DS)
70 overlay = true, -- don't summarize
71 total = true, -- report total amount of bytes
72 color = "660055" -- dropped tx is ... dunno ;)
75 -- dropped packets (rx DS)
77 overlay = true, -- don't summarize
78 flip = true, -- flip rx line
79 total = true, -- report total amount of bytes
80 color = "440066" -- dropped rx is violett
83 -- packet errors (tx DS)
85 overlay = true, -- don't summarize
86 total = true, -- report total amount of packets
87 color = "ff5500" -- tx errors are orange
90 -- packet errors (rx DS)
92 overlay = true, -- don't summarize
93 flip = true, -- flip rx line
94 total = true, -- report total amount of packets
95 color = "ff0000" -- rx errors are red
107 -- diagram data description
110 types = { "if_multicast" },
112 -- special options for single data lines
116 total = true, -- report total amount of packets
117 color = "0000ff" -- multicast is blue
129 -- diagram data description
132 types = { "if_collisions" },
134 -- special options for single data lines
138 total = true, -- report total amount of packets
139 color = "ff0000" -- collsions are red
151 -- diagram data description
154 types = { "if_tx_errors", "if_rx_errors" },
156 -- data type instances
158 if_tx_errors = { "aborted", "carrier", "fifo", "heartbeat", "window" },
159 if_rx_errors = { "length", "missed", "over", "crc", "fifo", "frame" }
162 -- special options for single data lines
163 options = { -- XXX: fixme (define colors...)
177 return { traffic, packets, multicast, collisions, errors }