luci-app-statistics: increase default amount of data items in RRD
authorHannu Nyman <[email protected]>
Sun, 28 Nov 2021 18:18:00 +0000 (20:18 +0200)
committerHannu Nyman <[email protected]>
Sun, 28 Nov 2021 18:26:30 +0000 (20:26 +0200)
Increase the default number of data items in the RRD database
from 144 to 288. This leads to smaller summarising/averaging periods,
visible especially in the day & week graphs. The averaging intervals
will be: 30s, 5min, 35min, 2h35min, 1d6h30min

(Note: this change only applies in a live router if the RRD database is
empty. E.g after reboot or after emptying the RRD database dir.)

Reference to discussion at #4065

Signed-off-by: Hannu Nyman <[email protected]>
(cherry picked from commit c21c6668edfc5154070660afa80153caad6565f7)

applications/luci-app-statistics/htdocs/luci-static/resources/view/statistics/plugins/rrdtool.js
applications/luci-app-statistics/root/etc/config/luci_statistics

index c1eb171ee7f32dee6d33907393cb3936be5b4ac3..e971e2c6c4b4b3b4ed56b2e8e8a8152de5b9203b 100644 (file)
@@ -50,7 +50,7 @@ return baseclass.extend({
                };
 
                o = s.option(form.Value, 'RRARows', _('Rows per RRA'));
-               o.default = '144';
+               o.default = '288';
                o.datatype = 'min(1)';
                o.depends('enable', '1');
 
index 581a1f5a2c8fb04f54ea15e57662deefd9a5051b..4c91076c315b72693331f54ace0bb46000ae3f4f 100644 (file)
@@ -19,7 +19,7 @@ config statistics 'rrdtool'
 config statistics 'collectd_rrdtool'
        option enable '1'
        option DataDir '/tmp/rrd'
-       option RRARows '144'
+       option RRARows '288'
        option RRASingle '1'
        option RRATimespans '1hour 1day 1week 1month 1year'