diff --git a/app/Models/Application.php b/app/Models/Application.php index c76a42d71..8113f5ec9 100644 --- a/app/Models/Application.php +++ b/app/Models/Application.php @@ -1171,7 +1171,7 @@ public function generate_preview_fqdn(int $pull_request_id) public function getMetrics(int $mins = 5) { $server = $this->destination->server; - $container_name = generateApplicationContainerName($this); + $container_name = $this->uuid; if ($server->isMetricsEnabled()) { $from = now()->subMinutes($mins)->toIso8601ZuluString(); $metrics = instant_remote_process(["docker exec coolify-sentinel sh -c 'curl -H \"Authorization: Bearer {$server->settings->metrics_token}\" http://localhost:8888/api/container/{$container_name}/metrics/history?from=$from'"], $server, false);