Merge pull request #1818 from dibdot/lxc_fix
[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         return {
8                 title = "%H: Conntrack entries",
9                 vlabel = "Count",
10                 number_format = "%5.0lf",
11                 data = {
12                         -- collectd 5.5+: specify "" to exclude "max" instance
13                         instances = {
14                                 conntrack = { "" }
15                         },
16                         sources = {
17                                 conntrack = { "value" }
18                         },
19                         options = {
20                                 conntrack = { 
21                                         color = "0000ff",
22                                         title = "Tracked connections"
23                                 }
24                         }
25                 }
26         }
27 end