Start free trial
Start free trial Log in

14-day free trial. No credit card.

Monitoring Laravel Filament

Filament is a Laravel app with Livewire under the hood, but admin panels have their own performance footguns worth watching for.

  • Guide
  • 3 min read

How do I monitor a Laravel Filament admin panel?

Filament is a Laravel app, so standard Laravel monitoring works. Filter your APM to /admin/* (or your panel's prefix) to isolate admin page loads from public traffic. Watch for the classic bugs: table columns that run a query per row, widget queries that don't cache, and dashboards that render hundreds of data points. Track failed admin logins as a security signal. NightOwl records every /admin request and Livewire update, with the queries each one ran.

Updated

Filament gives you a production admin panel in an afternoon, which is exactly why its performance problems sneak up on you. Nobody profiles the admin: it's for staff, and it feels instant on a dev machine with fifty seed rows. Then the users table grows to a hundred thousand rows, a column closure runs its own query for every row on the page, and the list that used to open instantly takes seconds. The panel is a Laravel app underneath, so the fixes are ordinary Laravel fixes once you can see where the time goes.

Table resources: the biggest performance trap

A Filament Resource renders a Livewire-powered table. Filament eager-loads the relationships you name with dot notation (company.name), so those columns don't cause N+1. The trap is a column that computes its value in a closure, because the closure runs once per row:

Bad: fires one query per row

php
class UserResource extends Resource
{
    public static function table(Table $table): Table
    {
        return $table->columns([
            TextColumn::make('name'),
            TextColumn::make('company.name'),   // eager-loaded by Filament
            TextColumn::make('orders_total')
                ->state(fn (User $record) => $record->orders()->sum('total')),   // N+1
            TextColumn::make('subscription_plan')
                ->state(fn (User $record) => $record->subscription?->plan),     // lazy-load per row
        ]);
    }
}

Good: aggregate in SQL, eager-load what closures touch

php
use Filament\Tables\Columns\TextColumn;
use Filament\Tables\Table;
use Illuminate\Database\Eloquent\Builder;

class UserResource extends Resource
{
    public static function table(Table $table): Table
    {
        return $table
            ->modifyQueryUsing(fn (Builder $query) => $query->with('subscription'))
            ->columns([
                TextColumn::make('name'),
                TextColumn::make('company.name'),
                TextColumn::make('orders_sum_total')->sum('orders', 'total'),
                TextColumn::make('subscription_plan')
                    ->state(fn (User $record) => $record->subscription?->plan),
            ]);
    }
}

For complex tables with counts, use withCount() instead of computing in the view. Aggregate columns should be SQL-side whenever possible.

Widget caching

Filament widgets re-render on page load and on every $pollingInterval tick (5s by default). Uncached queries run every time:

php
class TotalRevenueWidget extends StatsOverviewWidget
{
    // Filament v4/v5. On v3 the property is static.
    protected ?string $pollingInterval = '30s';

    protected function getStats(): array
    {
        // Bad: hits DB every 30s
        // $total = Order::where('paid', true)->sum('total');

        // Good: cached
        $total = Cache::remember('stats.total_revenue', 30, fn () =>
            Order::where('paid', true)->sum('total')
        );

        return [
            Stat::make('Revenue', '$' . number_format($total, 2)),
        ];
    }
}

Admin auth failure tracking

/admin is a high-value target for attackers. Track failed logins. Filament's login form is a Livewire component, so a failed attempt arrives on the Livewire update endpoint, not on /admin/login: a check on the request path never matches. Log every failure with its guard instead, and filter on the guard if your panel has its own (->authGuard('admin')):

app/Providers/AppServiceProvider.php

php
use Illuminate\Auth\Events\Failed;
use Illuminate\Support\Facades\Event;

public function boot(): void
{
    Event::listen(function (Failed $event) {
        logger()->warning('Login failure', [
            'guard' => $event->guard,
            'email' => $event->credentials['email'] ?? null,
            'ip' => request()->ip(),
            'ua' => request()->userAgent(),
        ]);
    });
}

Watch these logs for failed-login spikes per IP. Filament's login page already rate-limits attempts (5 per minute); add IP-allowlisting at the load balancer where you can.

What to track per resource

  • List page load: should be < 400ms p95 for admin usability
  • Row actions: edit / delete / bulk. Target < 300ms per Livewire update.
  • Form submit: complex forms with many fields can be slow on save. Profile the Resource model's save() path.
  • Bulk actions: users expect these to be reasonably fast. If bulk is slow (> 2s for 50 rows), queue them instead.

Filtering your APM to admin traffic

In most APMs, filter requests by URL prefix:

  • /admin/*: full panel page loads
  • /livewire/update (/livewire-{hash}/update in Livewire 4): table filters, actions, form field updates, form submits and login submits
  • /admin/login: login page loads

Find the admin page that runs a query per row

NightOwl records every panel request and Livewire update with its full timeline. Repeated SQL is colored in the timeline and grouped on its Duplicates tab, which is where a per-row column closure shows up.

No credit card needed.

Terminal
composer require nightowl/agent
php artisan nightowl:install
php artisan nightowl:agent

Frequently asked questions

Anything else, write to support@usenightowl.com

Does Filament need its own monitoring setup?

Not technically. It's a Laravel app that ships Livewire components. Regular Laravel monitoring + Livewire-aware patterns covers it. But Filament admin panels have specific performance footguns (large table resources, columns that compute values per row, heavy dashboards) that deserve attention separately from the public-facing app.

What's the most common Filament performance bug?

Table columns that compute their value per row. A Filament Resource renders a Livewire component; the table fires a COUNT query plus a SELECT per page. Filament eager-loads relationships you reference with dot notation (company.name) on its own, so those columns are fine. The N+1 comes from a column whose state() closure runs its own query, like $record->orders()->sum('total'). Use the column aggregate methods (->sum('orders', 'total'), ->counts('orders')) so the database computes it in one query, and add ->with([...]) through the table's modifyQueryUsing() or the resource's getEloquentQuery() for relations your closures touch.

How do I monitor Filament admin panel usage?

Filament routes are prefixed (usually /admin/*). Filter your APM to /admin/* to see admin page loads separately from public traffic. Clicks inside the panel go to the shared Livewire update endpoint, so look at those requests' components to attribute them. Track per-resource slow operations: loads, updates, bulk actions. For user auditing (who did what in the admin), spatie/laravel-activitylog covers it. That's operational auditing, not performance monitoring.

How do I protect and monitor the Filament admin login?

/admin is a high-value target. Enforce strict auth (2FA preferred), IP-allowlist if possible, and monitor authentication failures: spikes in failed logins indicate credential stuffing or brute force. Filament's login page already rate-limits attempts (5 per minute), which slows a single IP but not a distributed attack.

How do I speed up slow Filament dashboards?

Three wins. First, cache widget data. Widgets re-fetch on a timer set by their $pollingInterval property (5s by default); use Cache::remember() inside to avoid hitting the DB every refresh, or set the interval to null to stop polling. Second, limit chart data ranges: rendering 365 days of hourly data is 8,760 data points. Third, for multi-table dashboards, run independent queries in parallel with Laravel's Concurrency::run() where applicable.

What about Filament v4 vs v3 for monitoring?

Filament v4 shipped in August 2025 and v5 in January 2026. Both kept the Resource / Widget / Form model. Monitoring concerns are the same: the bottlenecks are still table queries, widget computations, and form validation. v4's schema-based forms can hide N+1 in computed fields the same way v3 did; watch for lazy-loaded relationship access in form lifecycle hooks.

Does NightOwl have Filament-specific dashboards?

No. Filament shows up as normal Laravel requests (/admin/*) and Livewire updates (/livewire/update in Livewire 3, /livewire-{hash}/update in Livewire 4). Search the Requests page for your panel's prefix to isolate admin page loads. Livewire updates from the panel share one route with the rest of your Livewire traffic, and each request's timeline shows the component it was for.

Related

Flat pricing, whatever your traffic does

Every plan starts with a 14-day free trial. No credit card needed.

Hobby
$5 a month

One app for a side project. Issues and alerts, with a 14-day dashboard window.

Start my 14-day trial
TeamRecommended
$15 a month

Up to 3 apps and 5 people per team. Full history, the MCP server, data clearing and agent health.

Start my 14-day trial
Agency
$69 a month

Unlimited client apps and people, one overview of every app, and apps you can hand over.

Start my 14-day trial