Files

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

20 lines
639 B
PHP
Raw Permalink Normal View History

<?php
2019-04-11 23:26:42 -05:00
require 'includes/html/graphs/common.inc.php';
$rrd_filename = Rrd::name($device['hostname'], ['app', 'nginx', $app->app_id]);
2021-03-28 17:25:30 -05:00
if (Rrd::checkRrdExists($rrd_filename)) {
$rrd_options .= ' -b 1000 ';
$rrd_options .= ' -l 0 ';
$rrd_options .= ' DEF:a=' . $rrd_filename . ':Requests:AVERAGE';
$rrd_options .= " COMMENT:'Requests Current Average Maximum\\n'";
$rrd_options .= ' AREA:a#98FB98';
$rrd_options .= " LINE1.5:a#006400:'Requests '";
$rrd_options .= " GPRINT:a:LAST:'%6.2lf %s'";
$rrd_options .= " GPRINT:a:AVERAGE:'%6.2lf %s'";
$rrd_options .= " GPRINT:a:MAX:'%6.2lf %s\\n'";
2011-10-07 19:09:35 +00:00
}