luci-app-statistics: convert graph rendering to client side js
[project/luci.git] / applications / luci-app-statistics / htdocs / luci-static / resources / statistics / rrdtool / definitions / conntrack.js
1 /* Licensed to the public under the Apache License 2.0. */
2
3 'use strict';
4
5 return L.Class.extend({
6 title: _('Conntrack'),
7
8 rrdargs: function(graph, host, plugin, plugin_instance, dtype) {
9 return {
10 title: "%H: Conntrack entries",
11 vlabel: "Count",
12 number_format: "%5.0lf",
13 data: {
14 /* collectd 5.5+: specify "" to exclude "max" instance */
15 instances: {
16 conntrack: [ "" ]
17 },
18 sources: {
19 conntrack: [ "value" ]
20 },
21 options: {
22 conntrack: {
23 color: "0000ff",
24 title: "Tracked connections"
25 }
26 }
27 }
28 };
29 }
30 });