Improved metrics graph tooltip to show usage in a better way and added timestamp to the tooltip
This commit is contained in:
@@ -8,7 +8,7 @@ class Metrics extends Component
|
||||
{
|
||||
public $resource;
|
||||
|
||||
public $chartId = 'container-cpu';
|
||||
public $chartId = 'metrics';
|
||||
|
||||
public $data;
|
||||
|
||||
@@ -33,6 +33,16 @@ class Metrics extends Component
|
||||
try {
|
||||
$cpuMetrics = $this->resource->getCpuMetrics($this->interval);
|
||||
$memoryMetrics = $this->resource->getMemoryMetrics($this->interval);
|
||||
|
||||
// Debug logging
|
||||
\Log::info('Metrics loadData called', [
|
||||
'chartId' => $this->chartId,
|
||||
'cpuMetrics' => $cpuMetrics,
|
||||
'memoryMetrics' => $memoryMetrics,
|
||||
'cpuEvent' => "refreshChartData-{$this->chartId}-cpu",
|
||||
'memoryEvent' => "refreshChartData-{$this->chartId}-memory"
|
||||
]);
|
||||
|
||||
$this->dispatch("refreshChartData-{$this->chartId}-cpu", [
|
||||
'seriesData' => $cpuMetrics,
|
||||
]);
|
||||
|
Reference in New Issue
Block a user