opnsense / core

OPNsense GUI, API and systems backend
https://opnsense.org/
BSD 2-Clause "Simplified" License
3.28k stars 727 forks source link

Reporting / rrd - refactor existing code #7836

Closed AdSchellevis closed 3 weeks ago

AdSchellevis commented 3 weeks ago

Add RRD package with a simple factory class and a basic construct to define different rrd output types we support. This package contains the following:

On my end on a simple test this is roughly 40% faster than running /var/db/rrd/updaterrd.sh, which makes caching of metadata (config access) less relevant.

The new script should be able to replace all existing rrd cruft and supports a debug mode to find discrepanties between defined outputs in types and collected data in stats.

Usage: updaterrd.php [-h] [-d]
            -d debug mode, output errors to stdout