From 6493ce3fe05426755a9250586eb30345d33e3a9d Mon Sep 17 00:00:00 2001 From: Andras Bacsai Date: Thu, 20 Jun 2024 13:30:17 +0200 Subject: [PATCH] refactor: update container name assignment in Application model --- app/Models/Application.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 @@ class Application extends BaseModel 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);