luci/applications/luci-app-statistics/luasrc/statistics/rrdtool/definitions
guidosarducci fa1f4c42a6 luci-app-statistics: only graph data supported by APC UPS
Some graph definitions rely on data not supported across all APC UPSes.
Due to recent upstream changes in collectd, the daemon no longer creates
a NaN-filled .rrd file corresponding to any missing UPS data. Depending
on the connected UPS, this may result in some "broken" graphs on the Luci
Statistics page since rrdtool cannot find the expected .rrd file.

Include the add_supported() function to determine the UPS data available
at runtime and update any definitions of graphs to include only supported
data. For example, the whole chart stack of AC input and output voltages
will normally be "broken" if the UPS only measures AC input voltage. With
these changes, the output voltage graph definition is stripped out,
allowing the chart to render.

Make consistent use of data types and instances in graph definitions. All
definitions now use the same format with the 'instances' key. Unnecessary
'types' and 'sources' keys are removed.

Fix the definition of 'line frequency' graph, based on upstream collectd
apcups plugin code: type is 'frequency' but instance should be 'input'.

This also includes some code and whitespace cleanup.

Signed-off-by: Tony Ambardar <itugrok@yahoo.com>
2018-03-03 13:54:55 -08:00
..
apcups.lua luci-app-statistics: only graph data supported by APC UPS 2018-03-03 13:54:55 -08:00
conntrack.lua statistics: fix conntrack regression caused by collectd 5.5.0 2015-08-18 23:05:00 +03:00
contextswitch.lua Support for collectd-mod-contextswitch 2017-04-29 12:38:23 -04:00
cpu.lua statistics: clarify CPU/processor graph by removing "idle" from it 2015-08-28 22:58:16 +03:00
cpufreq.lua luci-app-statistics: adjust cpufreq graph for single/dual-core CPUs 2016-11-10 20:34:08 +02:00
df.lua app-statistics: df: Don't separate disk usage types 2016-12-07 03:45:21 -05:00
disk.lua Update my email addresses in the license headers 2015-01-16 23:49:44 +01:00
dns.lua Globally reduce copyright headers 2015-01-16 23:38:38 +01:00
entropy.lua statistics: entropy plugin - fix placement of entropy.lua 2015-08-28 12:51:43 +03:00
interface.lua luci-app-statistics: reorder interface, netlink and openvpn datasources 2015-10-05 19:11:51 +02:00
iptables.lua Update my email addresses in the license headers 2015-01-16 23:49:44 +01:00
irq.lua Update my email addresses in the license headers 2015-01-16 23:49:44 +01:00
iwinfo.lua luci-app-statistics: improve scaling of the associated stations graph 2015-10-25 10:11:35 +02:00
load.lua Update my email addresses in the license headers 2015-01-16 23:49:44 +01:00
memory.lua statistics: memory plugin - improve graph by better scaling of y-axis 2015-08-23 21:12:56 +03:00
netlink.lua luci-app-statistics: reorder interface, netlink and openvpn datasources 2015-10-05 19:11:51 +02:00
nut.lua luci-app-statistics: nut: Add additional stats some UPSes report 2016-08-13 20:38:56 -04:00
olsrd.lua Globally reduce copyright headers 2015-01-16 23:38:38 +01:00
openvpn.lua luci-app-statistics: reorder interface, netlink and openvpn datasources 2015-10-05 19:11:51 +02:00
ping.lua luci-app-statistics: Remove usually empty std.dev. graph from ping page 2016-02-02 14:34:10 +02:00
processes.lua luci-app-statistics: processes: fix graph visibility 2017-05-09 09:46:50 +03:00
sensors.lua luci-app-statistics: add initial support for collect-mod-sensors 2015-10-05 15:13:44 +02:00
splash_leases.lua Globally reduce copyright headers 2015-01-16 23:38:38 +01:00
tcpconns.lua Update my email addresses in the license headers 2015-01-16 23:49:44 +01:00
thermal.lua luci-app-statistics: add support for thermal stats 2016-11-19 16:10:57 +02:00
uptime.lua Rework LuCI build system 2015-01-08 16:26:20 +01:00