@include("metrics.partials.filter")
@include("metrics.partials.data-retention")
@php
$cpuSets = [
"name" => "CPU Load",
"data" => $data["metrics"]->pluck("load")->toArray(),
"color" => "#ff9900",
];
$memorySets = [
"name" => "Memory Usage",
"data" => $data["metrics"]->pluck("memory_used")->toArray(),
"color" => "#3366cc",
];
$diskSets = [
"name" => "Disk Usage",
"data" => $data["metrics"]->pluck("disk_used")->toArray(),
"color" => "#109618",
];
@endphp
Total Memory
{{ $lastMetric ? number_format((int) ($lastMetric->memory_total / 1024)) : "-" }} MB
Used Memory
{{ $lastMetric ? number_format((int) ($lastMetric->memory_used / 1024)) : "-" }} MB
Free Memory
{{ $lastMetric ? number_format((int) ($lastMetric->memory_free / 1024)) : "-" }} MB
Total Space
{{ $lastMetric ? number_format($lastMetric->disk_total) : "-" }} MB
Used Space
{{ $lastMetric ? number_format($lastMetric->disk_used) : "-" }} MB
Free Space
{{ $lastMetric ? number_format($lastMetric->disk_free) : "-" }} MB
@stack("modals")