1 module("luci.statistics.rrdtool.definitions.interface", package.seeall)
3 function rrdargs( graph, host, plugin, plugin_instance )
16 -- draw this diagram for each data instance
19 -- diagram data description
21 -- defined sources for data types, if ommitted assume a single DS named "value" (optional)
23 if_octets = { "tx", "rx" }
26 -- special options for single data lines
29 total = true, -- report total amount of bytes
30 color = "00ff00" -- tx is green
34 flip = true, -- flip rx line
35 total = true, -- report total amount of bytes
36 color = "0000ff" -- rx is blue
54 -- draw this diagram for each data instance
57 -- diagram data description
60 types = { "if_packets", "if_errors" },
62 -- defined sources for data types
64 if_packets = { "tx", "rx" },
65 if_errors = { "tx", "rx" }
68 -- special options for single data lines
70 -- processed packets (tx DS)
72 overlay = true, -- don't summarize
73 total = true, -- report total amount of bytes
74 color = "00ff00" -- processed tx is green
77 -- processed packets (rx DS)
79 overlay = true, -- don't summarize
80 flip = true, -- flip rx line
81 total = true, -- report total amount of bytes
82 color = "0000ff" -- processed rx is blue
85 -- packet errors (tx DS)
87 overlay = true, -- don't summarize
88 total = true, -- report total amount of packets
89 color = "ff5500" -- tx errors are orange
92 -- packet errors (rx DS)
94 overlay = true, -- don't summarize
95 flip = true, -- flip rx line
96 total = true, -- report total amount of packets
97 color = "ff0000" -- rx errors are red
103 return { traffic, packets }