1<?php 2 3require 'includes/html/graphs/common.inc.php'; 4 5$scale_min = 0; 6$nototal = 1; 7$unit_text = 'Usage'; 8$unitlen = 15; 9$bigdescrlen = 20; 10$smalldescrlen = 15; 11$colours = 'mixed'; 12 13$rrd_filename = Rrd::name($device['hostname'], ['app', 'redis', $app['app_id'], 'usage']); 14 15$array = [ 16 'allocated' => 'Allocated', 17 'dataset' => 'Dataset', 18 'lua' => 'LUA', 19 'overhead' => 'Overhead', 20 'peak' => 'Peak', 21 'rss' => 'RSS', 22 'scripts' => 'Scripts', 23 'startup' => 'Startup', 24]; 25 26$rrd_list = []; 27if (Rrd::checkRrdExists($rrd_filename)) { 28 $i = 0; 29 foreach ($array as $ds => $descr) { 30 $rrd_list[$i]['filename'] = $rrd_filename; 31 $rrd_list[$i]['descr'] = $descr; 32 $rrd_list[$i]['ds'] = $ds; 33 $i++; 34 } 35} else { 36 echo "file missing: $rrd_filename"; 37} 38 39require 'includes/html/graphs/generic_multi_line_exact_numbers.inc.php'; 40