mirror of
https://github.com/eduardogsilva/wireguard_webadmin.git
synced 2025-04-19 00:45:16 +00:00
Switch DS type from COUNTER to DERIVE in RRDTool setup.
Changed 'tx' and 'rx' data sources to DERIVE to improve accuracy and minimize false spikes in rate calculations. This ensures better handling of resets or rollovers in the monitored data.
This commit is contained in:
parent
804a5e90fb
commit
3afae967d7
@ -57,8 +57,8 @@ def create_peer_rrd(rrd_file):
|
||||
cmd = [
|
||||
"rrdtool", "create", rrd_file,
|
||||
"--step", "300",
|
||||
"DS:tx:COUNTER:600:0:U",
|
||||
"DS:rx:COUNTER:600:0:U",
|
||||
"DS:tx:DERIVE:600:0:U",
|
||||
"DS:rx:DERIVE:600:0:U",
|
||||
"DS:status:GAUGE:600:0:1",
|
||||
"RRA:AVERAGE:0.5:1:1440",
|
||||
"RRA:AVERAGE:0.5:6:700",
|
||||
@ -81,8 +81,8 @@ def create_instance_rrd(rrd_file):
|
||||
cmd = [
|
||||
"rrdtool", "create", rrd_file,
|
||||
"--step", "300",
|
||||
"DS:tx:COUNTER:600:0:U",
|
||||
"DS:rx:COUNTER:600:0:U",
|
||||
"DS:tx:DERIVE:600:0:U",
|
||||
"DS:rx:DERIVE:600:0:U",
|
||||
"RRA:AVERAGE:0.5:1:1440",
|
||||
"RRA:AVERAGE:0.5:6:700",
|
||||
"RRA:AVERAGE:0.5:24:775",
|
||||
|
Loading…
x
Reference in New Issue
Block a user