Files
librenms-librenms/includes/html/graphs/application/docker-common.inc.php
T

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

36 lines
781 B
PHP
Raw Normal View History

2021-03-07 20:26:44 +01:00
<?php
$name = 'docker';
$colours = 'mega';
$dostack = 0;
$printtotal = 0;
$addarea = 1;
$transparency = 15;
$unitlen = 20;
$bigdescrlen = 25;
$smalldescrlen = 25;
if (isset($vars['container'])) {
$containers = [$vars['container']];
} else {
$containers = $app->data['containers'] ?? [];
2021-03-07 20:26:44 +01:00
}
$int = 0;
while (isset($containers[$int])) {
$container_name = $containers[$int];
$rrd_filename = Rrd::name($device['hostname'], ['app', $name, $app->app_id, $container_name]);
2021-03-07 20:26:44 +01:00
2021-03-28 17:25:30 -05:00
if (Rrd::checkRrdExists($rrd_filename)) {
2021-03-07 20:26:44 +01:00
$rrd_list[] = [
'filename' => $rrd_filename,
'descr' => $container_name,
'ds' => $rrdVar,
];
}
$int++;
}
require 'includes/html/graphs/generic_multi_line_exact_numbers.inc.php';