summaryrefslogtreecommitdiffhomepage
path: root/applications/luci-app-statistics/luasrc/statistics/rrdtool/definitions/conntrack.lua
blob: d99dab0f014a9bc7b8c50797c3a7b3e842210077 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
-- Copyright 2011 Jo-Philipp Wich <jow@openwrt.org>
-- Licensed to the public under the Apache License 2.0.

module("luci.statistics.rrdtool.definitions.conntrack",package.seeall)

function item()
	return luci.i18n.translate("Conntrack")
end

function rrdargs( graph, plugin, plugin_instance, dtype )

	return {
		title = "%H: Conntrack entries",
		vlabel = "Count",
		number_format = "%5.0lf",
		data = {
			-- collectd 5.5+: specify "" to exclude "max" instance
			instances = {
				conntrack = { "" }
			},
			sources = {
				conntrack = { "value" }
			},
			options = {
				conntrack = { 
					color = "0000ff",
					title = "Tracked connections"
				}
			}
		}
	}
end