mirror of
https://github.com/coollabsio/coolify.git
synced 2026-10-08 06:56:02 -04:00
Traffic analytics now covers every resource on both proxies:
- Caddy: Compose applications and services get access-log labels. The
log_append key is {uuid}-{service}, the same key Sentinel reads from
Traefik router names.
- A resource owns the Sentinel key {uuid} and every key that starts
with {uuid}-. Application pages and the traffic card now merge all
keys, so Compose applications and previews show data on Traefik too.
- Global analytics: the leaderboard groups the keys of one resource
into one row, lists services, and never names keys of other teams.
- New service analytics page (project.service.analytics) with the same
view and authorization as the application page.
- Switching the proxy type restarts Sentinel when analytics is on, so
it reads the new log path. Sentinel gets no traffic mount when the
proxy has no analytics support.
- Caddy servers show a note that resources log only after a redeploy.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
21 lines
391 B
PHP
21 lines
391 B
PHP
<?php
|
|
|
|
namespace App\Livewire\Project\Service;
|
|
|
|
use App\Livewire\Project\Shared\ResourceTrafficAnalytics;
|
|
use App\Models\Service;
|
|
use Livewire\Attributes\Lazy;
|
|
|
|
#[Lazy]
|
|
class Analytics extends ResourceTrafficAnalytics
|
|
{
|
|
public Service $service;
|
|
|
|
public string $chartId = 'service-analytics';
|
|
|
|
protected function resourceProperty(): string
|
|
{
|
|
return 'service';
|
|
}
|
|
}
|