From 5bf636732efab13fdd92dabfd746cafb156dd4f6 Mon Sep 17 00:00:00 2001 From: fantom-x Date: Sat, 29 Apr 2017 11:26:16 -0400 Subject: Support for collectd-mod-contextswitch Signed-off-by: Marc Benoit marcb6218@gmail.com --- .../luasrc/model/cbi/luci_statistics/contextswitch.lua | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 applications/luci-app-statistics/luasrc/model/cbi/luci_statistics/contextswitch.lua (limited to 'applications/luci-app-statistics/luasrc/model') diff --git a/applications/luci-app-statistics/luasrc/model/cbi/luci_statistics/contextswitch.lua b/applications/luci-app-statistics/luasrc/model/cbi/luci_statistics/contextswitch.lua new file mode 100644 index 0000000000..7ae6b24ba1 --- /dev/null +++ b/applications/luci-app-statistics/luasrc/model/cbi/luci_statistics/contextswitch.lua @@ -0,0 +1,14 @@ +-- Licensed to the public under the Apache License 2.0. + +m = Map("luci_statistics", + translate("CPU Context Switches Plugin Configuration"), + translate("This plugin collects statistics about the processor context switches.")) + +-- collectd_contextswitch config section +s = m:section( NamedSection, "collectd_contextswitch", "luci_statistics" ) + +-- collectd_contextswitch.enable +enable = s:option( Flag, "enable", translate("Enable this plugin") ) +enable.default = 0 + +return m -- cgit v1.2.3