5212b736e2f2d929b7ff365f72ff604e056ac1a1
[project/luci.git] / applications / luci-app-statistics / luasrc / statistics / rrdtool / definitions / conntrack.lua
1 -- Copyright 2011 Jo-Philipp Wich <jow@openwrt.org>
2 -- Licensed to the public under the Apache License 2.0.
3
4 module("luci.statistics.rrdtool.definitions.conntrack",package.seeall)
5
6 function rrdargs( graph, plugin, plugin_instance, dtype )
7
8 return {
9 title = "%H: Conntrack entries",
10 vlabel = "Count",
11 number_format = "%5.0lf",
12 data = {
13 -- collectd 5.5+: specify "" to exclude "max" instance
14 instances = {
15 conntrack = { "" }
16 },
17 sources = {
18 conntrack = { "value" }
19 },
20 options = {
21 conntrack = {
22 color = "0000ff",
23 title = "Tracked connections"
24 }
25 }
26 }
27 }
28 end