statistics: cpu graph - add label definitions, add softirq and interrupt stats
authorHannu Nyman <hannu.nyman@iki.fi>
Sun, 23 Aug 2015 14:14:22 +0000 (17:14 +0300)
committerHannu Nyman <hannu.nyman@iki.fi>
Fri, 28 Aug 2015 20:25:57 +0000 (23:25 +0300)
commit18593ecf006fe8c8f221f1bc1f5d56cf36a067a3
tree81185d82dca44659375b0ce2693698135bab7023
parent791ca8b6d217cd17b563c008c86159f519874d72
statistics: cpu graph - add label definitions, add softirq and interrupt stats

CPU plugin in the Luci statistics was missing the label definitions,
so the field labels are like "cpu_system" instead of "System".
Add proper label definitions to CPU (like the other plugins already have).

The statistics graph was also missing softirq and interrupt stats, although colors
for them were defined. Softirq consumes massive amount of CPU especially with
any qos in use, so it is important for the user to see also that data. Add both
softirq and interrupt stats to the graph.

Signed-off-by: Hannu Nyman <hannu.nyman@iki.fi>
(cherry picked from commit 962cd2c4c1609566e3dd600f41c3bd16ca0276fb)
applications/luci-app-statistics/luasrc/statistics/rrdtool/definitions/cpu.lua