1 /* Licensed to the public under the Apache License 2.0. */
6 return baseclass.extend({
7 title: _('Interfaces'),
9 rrdargs: function(graph, host, plugin, plugin_instance, dtype) {
15 /* draw this diagram for each plugin instance */
17 title: "%H: Transfer on %pi",
20 /* diagram data description */
22 /* defined sources for data types, if omitted assume a single DS named "value" (optional) */
24 if_octets: [ "tx", "rx" ]
27 /* special options for single data lines */
30 total: true, /* report total amount of bytes */
31 color: "00ff00", /* tx is green */
36 flip : true, /* flip rx line */
37 total: true, /* report total amount of bytes */
38 color: "0000ff", /* rx is blue */
50 /* draw this diagram for each plugin instance */
52 title: "%H: Packets on %pi",
55 /* diagram data description */
58 types: [ "if_packets", "if_errors" ],
60 /* defined sources for data types */
62 if_packets: [ "tx", "rx" ],
63 if_errors : [ "tx", "rx" ]
66 /* special options for single data lines */
68 /* processed packets (tx DS) */
71 overlay: true, /* don't summarize */
72 total : true, /* report total amount of bytes */
73 color : "00ff00", /* processed tx is green */
74 title : "Processed (TX)"
77 /* processed packets (rx DS) */
80 overlay: true, /* don't summarize */
81 flip : true, /* flip rx line */
82 total : true, /* report total amount of bytes */
83 color : "0000ff", /* processed rx is blue */
84 title : "Processed (RX)"
87 /* packet errors (tx DS) */
90 overlay: true, /* don't summarize */
91 total : true, /* report total amount of packets */
92 color : "ff5500", /* tx errors are orange */
96 /* 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 */
103 title : "Errors (RX)"
109 return [ traffic, packets ];