statistics: clarify CPU/processor graph by removing "idle" from it 455/head
authorHannu Nyman <hannu.nyman@iki.fi>
Fri, 28 Aug 2015 19:58:16 +0000 (22:58 +0300)
committerHannu Nyman <hannu.nyman@iki.fi>
Fri, 28 Aug 2015 20:26:58 +0000 (23:26 +0300)
Clarify the CPU time consumption graph by removing the "idle" data from it.
Especially with light traffic, removing "idle" enables the graph
to scale better and to properly show the CPU load variations.

If "idle" data needs to be seen, it might be added as a second graph below.

Signed-off-by: Hannu Nyman <hannu.nyman@iki.fi>
(cherry picked from commit 5ce647746e584bc10ce5238126bd6ec933fcf609)

applications/luci-app-statistics/luasrc/statistics/rrdtool/definitions/cpu.lua

index bee2ed4d6901ab7965e942511cea02cb9ddf9c9e..ae0c0ce7782bcb2d2d6a81331b39696eec5ccb30 100644 (file)
@@ -8,11 +8,12 @@ function rrdargs( graph, plugin, plugin_instance, dtype )
        return {
                title = "%H: Processor usage on core #%pi",
                y_min = "0",
+               alt_autoscale_max = true,
                vlabel = "Percent",
                number_format = "%5.1lf%%",
                data = {
                        instances = { 
-                               cpu = { "idle", "user", "nice", "system", "softirq", "interrupt" }
+                               cpu = { "user", "nice", "system", "softirq", "interrupt" }
                        },
 
                        options = {