Grow rrd database rows to 0:7days, 1:10years.
This commit is contained in:
parent
34712ca75a
commit
3674880f07
@ -112,8 +112,8 @@ class Temperature
|
||||
$options = [
|
||||
'--step', '60', // 1min step
|
||||
sprintf('DS:%s:GAUGE:600:0:100', $id), // 10min hartbeat
|
||||
'RRA:LAST:0.5:1:1440', // last/m - 1day(1440min)
|
||||
'RRA:LAST:0.5:30:52560', // last/30m - 3years(365day=30min*17520)*3
|
||||
'RRA:LAST:0.5:1:10080', // last/m - 7day(10080min)
|
||||
'RRA:LAST:0.5:30:175200', // last/30m - 10years(365day=30min*17520)*10
|
||||
];
|
||||
|
||||
return rrd_create($fpath, $options);
|
||||
|
Loading…
Reference in New Issue
Block a user