Skip to content

An open-source, self-hostable PaaS alternative to Vercel, Heroku & Netlify that lets you easily deploy static sites, databases, full-stack applications and 360+ one-click services on your own servers.

2.0 KB
Raw Blame
<div>
    <x-slot:title>
        Sentinel Logs | Coolify
    </x-slot>
    <livewire:server.navbar :server="$server" />
    <div
        class="server-settings-workspace application-settings-workspace mt-4 grid w-full max-w-none min-w-0 gap-8 lg:mt-0 xl:grid-cols-[210px_minmax(0,1fr)] xl:gap-8">
        <x-server.sidebar :server="$server" activeMenu="sentinel" activeSubMenu="logs" />
        <div class="application-settings-form w-full">
            <x-application.settings-section title="Sentinel logs"
                helper="Search, filter, follow, copy, or download recent output from the Sentinel container."
                flush class="logs-settings-section">
                @if ($server->isSentinelEnabled())
                    @php
                        $sentinelStatus = $server->sentinelStatus();
                        [$sentinelStatusLabel, $sentinelStatusType] = match ($sentinelStatus) {
                            'waiting' => ['Waiting for first report', 'neutral'],
                            'in_sync' => ['In sync', 'success'],
                            default => ['Out of sync', 'warning'],
                        };
                    @endphp
                    <x-slot:actions>
                        <x-status-badge :status="$sentinelStatusLabel" :type="$sentinelStatusType"
                            class="logs-section-status-badge" />
                    </x-slot:actions>
                    <div class="settings-log-panel">
                        <livewire:project.shared.get-logs :server="$server" container="coolify-sentinel"
                            displayName="Sentinel" :collapsible="false" />
                    </div>
                @else
                    <x-empty size="sm" title="Sentinel is unavailable"
                        description="Sentinel does not run on build or Swarm servers."
                        icon-name="dashboard" />
                @endif
            </x-application.settings-section>
        </div>
    </div>
</div>