Baike.dev
All toolsOnline toolsAI codingTrendingOpen sourceNewsSubmit
Log in
< Back to tools
L

laravel-vigilance

> 编程语言
Open source

A driver-agnostic control center for Laravel queues, jobs, commands & scheduler — plus whole-app APM, tracing, job batches, metrics, alerts and uptime. Self-hos

191 stars0 likes1 views
WebsiteGitHub

About

A driver-agnostic control center for Laravel queues, jobs, commands & scheduler — plus whole-app APM, tracing, job batches, metrics, alerts and uptime. Self-hos

Vigilance

A driver-agnostic control center for Laravel queues, jobs, commands and the scheduler.

See what ran — with the parameters it ran with — whether it failed, and dispatch jobs or run artisan commands manually from a self-contained dashboard. Think "Horizon, but for every queue driver, plus commands, plus a manual control plane" — and built to run in production, not just locally.

** Documentation & guide → anousss007.github.io/laravel-vigilance**

Published on Packagist. The capture, storage, manual-control, metrics, tracing and worker-supervisor layers are covered by tests — including a real multi-process supervisor chaos battery validated across the database, redis, sqs and beanstalkd drivers (autoscaling, crash-recovery, graceful shutdown, zero orphans). The dashboard ships as a standalone Livewire UI (no Filament required).

Why Vigilance (and how it differs from Telescope / Horizon)

Horizon Telescope Vigilance
Queue drivers Redis only all all (database, Redis, SQS, Beanstalkd, sync)
Jobs ✅ ✅ ✅ (full queued → running → done/failed lifecycle)
Artisan commands ❌ ✅ (view) ✅ (capture and run manually)
Scheduler monitoring ❌ partial ✅ (late / failed / grace)
Manual dispatch of jobs ❌ ❌ ✅ (typed form from the constructor)
Run arbitrary commands from UI ❌ ❌ ✅ (allowlisted)
Error tracking (grouped issues) ❌ ✅ (view) ✅ (web · queue · command · browser, fingerprinted inbox, breadcrumbs, manual merge)
Whole-app APM + per-route percentiles ❌ ❌ ✅ (p50/p95/p99, Apdex, error rate)
Per-page cost (queries · DB time · memory · models) ❌ ❌ ✅ (Debugbar's counters, per route, in production — opt-in)
Real User Monitoring (Core Web Vitals) ❌ ❌ ✅ (LCP/INP/CLS/FCP/TTFB + JS errors)
SLOs + error budgets ❌ ❌ ✅ (burn-rate alerts)
Trace-correlated log explorer ❌ ✅ (view) ✅ (searchable, linked to traces)
Distributed tracing ❌ ❌ ✅ (W3C traceparent in/out + across the queue boundary)
Custom business metrics ❌ ❌ ✅ (one-line API + dashboard)
Release health / deploy gating ❌ ❌ ✅ (before/after regression guard + rollback alert)
Anomaly detection ❌ ❌ ✅ (dynamic baselines, not fixed thresholds)
Server resource alerts (CPU · RAM · disk) ❌ ❌ ✅ (per volume, with the free space left)
Watches its own pipeline ❌ ❌ ✅ (dead-man's switch — silence stops looking like health)
Incident mode (auto-expiring full capture) ❌ ❌ ✅ (opt-in)
Shows what the monitoring itself costs ❌ ❌ ✅ (rows, growth, retention, per telemetry type)
Alerting ❌ ❌ ✅ (mail · Slack · Discord · Teams · webhooks + incidents + maintenance windows)
AI agent access (MCP) ❌ ❌ ✅ (query errors · APM · traces · releases · SLOs — read-only, with gated writes)
Production-oriented ✅ ❌ (debug tool) ✅ (see below)

Built for production

Telescope is a fantastic local debugging assistant, but it observes your whole app (requests, queries, cache, models, jobs, …), records everything by default, stores it verbatim with no size caps and no native sampling — which is why its own docs tell you to neuter it in production. Vigilance is deliberately narrow (only jobs / commands / scheduler) and bounded by design:

  • One row per run, updated through its lifecycle — not a row per event.
  • Sampling decided at dispatch time: a sampled-out successful job costs zero database writes. Failures are always captured regardless of the sample rate.
  • Size caps on parameters, exception traces and command output (configurable truncation).
  • Secret redaction by key name (password, token, …) before anything is stored.
  • Separate database connection supported, to keep monitoring writes off your primary connection.
  • Capture is wrapped in a guard — a monitoring error can never break the host application.
  • Master switch + per-type toggles + exclusion list and a ShouldNotBeMonitored marker.
  • Retention/pruning via vigilance:prune, plus ring-buffered metric snapshots.
  • Secure-by-default dashboard (local-only until you explicitly authorize access).

Whole-app APM (optional)

On top of jobs/commands/scheduler, Vigilance includes a production-first APM layer — servers (CPU/memory/disk), slow requests, slow queries, slow outgoing HTTP, cache hit-rate, exceptions and per-user usage — on the APM dashboard page. It covers the same ground as Laravel Pulse, but driver-agnostic and with no extra infrastructure: recorders capture cheaply (~9 µs/record), defer the heavy work, and flush after the response is sent, so there is zero request latency. A clean Ingest export seam fans the same telemetry out to an external system — there is a ready-made http exporter, or implement the contract yourself.

Run the heartbeat on each app server and read the full design in docs/apm.md:

bash
php artisan vigilance:check

Debugbar's counters, in production (optional, off by default)

The Routes page can show more than latency: for every route, what the page costs — queries per request, time spent in the database, peak memory and Eloquent models hydrated. These are the numbers Laravel Debugbar gives you locally, aggregated per route and safe to run in production.

They deliberately don't come from tracing. A trace is only kept when it's sampled, slow or errored, so a route that quietly runs 180 distinct queries in 400 ms never appears there. The RequestProfile recorder counts on every request instead (two increments per query on the hot path, one write in the terminate phase), and peak memory is rebased per request so it stays honest under Octane.

Because it listens to every query and writes a few extra entries per request, it's opt-in — enable it, and optionally the matching alert rule, when you want the visibility:

env
VIGILANCE_APM_REQUEST_PROFILE=true

Tracing (optional, off by default)

For the deep dive, Vigilance can record a per-request / per-job waterfall — every query, cache op and outgoing HTTP call inside a single request, with timings — on the Traces page. It's the self-hosted equivalent of a hosted APM's trace view.

Because full traces are heavy, tracing is off by default and engineered to stay cheap: spans are collected in a ~2 µs in-memory push and the trace is persisted only if it's slow, errored, or sampled — so at millions of queries you store a tiny fraction, never everything, and the write happens after the response is sent. Enable with VIGILANCE_TRACING=true; see docs/tracing.md.

Observability suite

On top of capture, APM and tracing, Vigilance is a full front-to-back observability platform. Each layer keeps the same production-first posture (captured cheaply, flushed after the response, sampled and bounded) and lands on its own dashboard page. Full guide in docs/observability.md.

Feature Page What it gives you
Issues — unified error tracking /vigilance/issues Every exception (web · queue · command · Vigilance::report() · browser) fingerprinted into a grouped inbox with stacktrace, context, breadcrumb trail, occurrence sparkline, assign/ack/mute/resolve/merge
Routes — per-route performance /vigilance/routes Throughput, error rate, Apdex and exact p50/p95/p99 latency per route
Web Vitals — RUM /vigilance/vitals Core Web Vitals (LCP/INP/CLS/FCP/TTFB) + JS errors from real visitors via the @vigilanceRum beacon
SLOs — error budgets /vigilance/slos Availability / latency objectives vs. an error budget, with a short-window burn-rate alert
Incidents — alerting depth /vigilance/incidents Fired alerts persisted as incidents (open → auto-resolved) with level, occurrences and MTTR; channels for Discord / Teams / generic webhooks
Releases — deploy health /vigilance/releases Each deploy's error-rate / latency / throughput after vs. before, with a healthy/degraded/regressed verdict; a bad deploy fires a rollback-ready alert
Custom Metrics — business KPIs /vigilance/custom-metrics Vigilance::increment() / gauge() / histogram() → counter, gauge & distribution (p50/p95/p99) cards with sparklines
Logs — explorer /vigilance/logs Searchable application logs correlated to the trace that emitted them
php
use Vigilance\Vigilance;

Vigilance::increment('signups');                 // custom counter
Vigilance::gauge('cart_value', $cart->total());  // custom gauge
Vigilance::histogram('checkout_ms', $ms);        // distribution (p50/p95/p99)
Vigilance::breadcrumb('Charged card', 'billing');// trail attached to the next error
blade
{{-- drop in your layout  after VIGILANCE_RUM=true to collect Web Vitals --}}
@vigilanceRum

Query from your AI agent (MCP)

Vigilance ships a first-class MCP server (built on the official laravel/mcp) so an AI coding agent — Claude Code, Cursor, Copilot, … — can query your live telemetry and fix what it finds. Where a hosted tool's MCP typically only sees errors, Vigilance exposes errors, queue/command runs, APM performance, traces, logs, SLOs, incidents and release health through one self-hosted server — and because the agent runs inside your project, "check the errors / slow endpoints in Vigilance and fix them" works end-to-end.

bash
composer require laravel/mcp        # optional dependency, only needed for MCP
env
VIGILANCE_MCP_ENABLED=true

Then point your MCP client at the local (stdio) server:

json
{
  "mcpServers": {
    "vigilance": { "command": "php", "args": ["artisan", "mcp:start", "vigilance"] }
  }
}

Tools are read-only by default — a redacted, size-capped window onto the data, so a tool can never leak a secret or dump the database into the agent's context. Set VIGILANCE_MCP_ALLOW_WRITES=true to additionally expose triage tools (resolve / acknowledge / mute an issue, retry a failed job); every write is recorded in the same audit log as the dashboard. Full guide: docs/mcp.md.

The tool set mirrors every dashboard page, so the agent can reach anything you can:

Area Tools
Health overview
Errors issues · issue · exceptions
Runs runs · run · job-metrics
Performance (APM) performance · slow-requests · slow-queries · slow-jobs · slow-http · cache · servers · usage
Front-end (RUM) vitals
Tracing & logs traces · trace · logs
Reliability slos · incidents · releases
Queues & workers workers (+ control status) · workload · queues (+ paused state) · routes · pending · schedule · batches · tags
Business metrics custom-metrics (counters · gauges · distributions)
Feedback feedback (user-reported problems tied to a trace)
Writes (opt-in) resolve-issue · acknowledge-issue · assign-issue · merge-issues · mute-issue · reopen-issue · retry-run · retry-issue · record-deploy · maintenance
Worker & queue control (opt-in) control-workers · pause-queue · resume-queue · clear-queue · cancel-pending
Investigation footprint (what monitoring costs) · suppressions (list/create mute rules) · incident-mode (turn capture up briefly)
Manual control (opt-in, double-gated) dispatchable-jobs · runnable-commands · dispatch-job · run-command

The worker & queue control tools let the agent run the control plane, not just observe it: control-workers pauses / resumes / restarts / terminates the fleet, and pause-queue / resume-queue togg

Issues· 0 open

View all issuesOpen on GitHub

No open issues yet, or sync has not completed.

> Tags

PHP

No comments yet. Be the first to share.

> Details

PublishedAug 1, 2026
UpdatedSep 18, 2026
Category编程语言
PricingOpen source

> Related tools

T
TypeScript
JavaScript 的超集,为前端与全栈提供静态类型
P
Python
通用编程语言,广泛用于 Web、数据与 AI
G
Go
Google 推出的简洁高效系统语言