[BS5] add container disk and network stats

This commit is contained in:
FreddleSpl0it
2022-08-22 16:08:01 +02:00
parent 2e10cc8e79
commit 7f70b0f703
6 changed files with 452 additions and 164 deletions

View File

@@ -1463,6 +1463,10 @@ if (isset($_GET['query'])) {
}
echo json_encode($temp, JSON_UNESCAPED_SLASHES);
break;
case "container":
$container_stats = docker('container_stats', $extra);
echo json_encode($container_stats);
break;
case "vmail":
$exec_fields_vmail = array('cmd' => 'system', 'task' => 'df', 'dir' => '/var/vmail');
$vmail_df = explode(',', json_decode(docker('post', 'dovecot-mailcow', 'exec', $exec_fields_vmail), true));