luci/applications/luci-app-statistics/luasrc/model/cbi/luci_statistics/cpufreq.lua
Hannu Nyman df3c8728b9 luci-app-statistics: add support for CPU frequency scaling stats
Add support for 'cpufreq' plugin in collectd, which monitors
the CPU cores' frequencies. Some platforms enable dynamic
frequency scaling according to CPU load.

'cpufreq' plugin can currently be built for x86 and mvebu.
(and it should likely be enabled also for ipq806x)

Signed-off-by: Hannu Nyman <hannu.nyman@iki.fi>
2016-11-08 22:24:56 +02:00

14 lines
451 B
Lua

-- Licensed to the public under the Apache License 2.0.
m = Map("luci_statistics",
translate("CPU Frequency Plugin Configuration"),
translate("This plugin collects statistics about the processor frequency scaling."))
-- collectd_cpufreq config section
s = m:section( NamedSection, "collectd_cpufreq", "luci_statistics" )
-- collectd_cpufreq.enable
enable = s:option( Flag, "enable", translate("Enable this plugin") )
enable.default = 0
return m