1 -- Copyright 2008 Freifunk Leipzig / Jo-Philipp Wich <jow@openwrt.org>
2 -- Licensed to the public under the Apache License 2.0.
4 module("luci.statistics.rrdtool.definitions.netlink", package.seeall)
6 function rrdargs( graph, plugin, plugin_instance )
12 title = "%H: Netlink - Transfer on %pi",
15 -- diagram data description
17 -- defined sources for data types, if ommitted assume a single DS named "value" (optional)
19 if_octets = { "tx", "rx" }
22 -- special options for single data lines
25 total = true, -- report total amount of bytes
26 color = "00ff00" -- tx is green
30 flip = true, -- flip rx line
31 total = true, -- report total amount of bytes
32 color = "0000ff" -- rx is blue
43 title = "%H: Netlink - Packets on %pi",
44 vlabel = "Packets/s", detail = true,
46 -- diagram data description
49 types = { "if_packets", "if_dropped", "if_errors" },
51 -- defined sources for data types
53 if_packets = { "tx", "rx" },
54 if_dropped = { "tx", "rx" },
55 if_errors = { "tx", "rx" }
58 -- special options for single data lines
60 -- processed packets (tx DS)
62 overlay = true, -- don't summarize
63 total = true, -- report total amount of bytes
64 color = "00ff00" -- processed tx is green
67 -- processed packets (rx DS)
69 overlay = true, -- don't summarize
70 flip = true, -- flip rx line
71 total = true, -- report total amount of bytes
72 color = "0000ff" -- processed rx is blue
75 -- dropped packets (tx DS)
77 overlay = true, -- don't summarize
78 total = true, -- report total amount of bytes
79 color = "660055" -- dropped tx is ... dunno ;)
82 -- dropped packets (rx DS)
84 overlay = true, -- don't summarize
85 flip = true, -- flip rx line
86 total = true, -- report total amount of bytes
87 color = "440066" -- dropped rx is violett
90 -- packet errors (tx DS)
92 overlay = true, -- don't summarize
93 total = true, -- report total amount of packets
94 color = "ff5500" -- tx errors are orange
97 -- packet errors (rx DS)
99 overlay = true, -- don't summarize
100 flip = true, -- flip rx line
101 total = true, -- report total amount of packets
102 color = "ff0000" -- rx errors are red
113 title = "%H: Netlink - Multicast on %pi",
114 vlabel = "Packets/s", detail = true,
116 -- diagram data description
119 types = { "if_multicast" },
121 -- special options for single data lines
125 total = true, -- report total amount of packets
126 color = "0000ff" -- multicast is blue
137 title = "%H: Netlink - Collisions on %pi",
138 vlabel = "Collisions/s", detail = true,
140 -- diagram data description
143 types = { "if_collisions" },
145 -- special options for single data lines
149 total = true, -- report total amount of packets
150 color = "ff0000" -- collsions are red
161 title = "%H: Netlink - Errors on %pi",
162 vlabel = "Errors/s", detail = true,
164 -- diagram data description
167 types = { "if_tx_errors", "if_rx_errors" },
169 -- data type instances
171 if_tx_errors = { "aborted", "carrier", "fifo", "heartbeat", "window" },
172 if_rx_errors = { "length", "missed", "over", "crc", "fifo", "frame" }
175 -- special options for single data lines
176 options = { -- XXX: fixme (define colors...)
190 return { traffic, packets, multicast, collisions, errors }