Grow rrd database rows to 0:7days, 1:10years.

This commit is contained in:
Yoshihiro OKUMURA 2021-10-28 12:35:49 +09:00
parent 34712ca75a
commit 3674880f07

View File

@ -112,8 +112,8 @@ class Temperature
$options = [ $options = [
'--step', '60', // 1min step '--step', '60', // 1min step
sprintf('DS:%s:GAUGE:600:0:100', $id), // 10min hartbeat sprintf('DS:%s:GAUGE:600:0:100', $id), // 10min hartbeat
'RRA:LAST:0.5:1:1440', // last/m - 1day(1440min) 'RRA:LAST:0.5:1:10080', // last/m - 7day(10080min)
'RRA:LAST:0.5:30:52560', // last/30m - 3years(365day=30min*17520)*3 'RRA:LAST:0.5:30:175200', // last/30m - 10years(365day=30min*17520)*10
]; ];
return rrd_create($fpath, $options); return rrd_create($fpath, $options);