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>
14 lines
451 B
Lua
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
|