L
laravel:horizon:metrics-and-dashboards
About laravel:horizon:metrics-and-dashboards
A Laravel Horizon skill for making queue operations observable and easier to manage. It covers queue naming, worker settings, safe retries, metrics, dashboards, and testing.
Key features
- 01Named queues and job tags
- 02Worker concurrency and retry settings
- 03Failure handling and idempotency
- 04Queue metrics and health indicators
- 05Dispatch and integration test guidance
Use cases
- 01Tracking jobs by domain identifiers
- 02Monitoring backlog and queue performance
- 03Making retries safe for failed jobs
Install
Copy the command and run it in a terminal.
$
npx skills add https:/ / github.com/ jpcaparas/ superpowers-laravel --skill laravel:horizon:metrics-and-dashboardsAfter installing, type/laravel:horizon:metrics-and-dashboardsin Claude Code to confirm it loaded.
Details
From the project READMEHorizon: Metrics and Dashboards
Make queues observable and actionable via Horizon.
Naming & Tags
- Use named queues (e.g.,
high,default,low); route jobs intentionally - Tag jobs with domain identifiers (user ID, aggregate ID) for tracing
Workers & Concurrency
- Right‑size
--max-time,--tries,--backoff - Separate critical queues into dedicated supervisors
Failures
- Use
failed()method/logging with structured context - Idempotency—ensure safe retries (unique keys, upserts, guards)
Metrics & Dashboards
- Track: throughput, runtime distribution, retries, failure rate, time‑to‑handle
- Add health indicators for backlog and SLA thresholds
- Integrate with your APM where possible
Testing
- Use
Bus::fake()for dispatch assertions - Integration tests to verify side‑effects and tags
Comments
Markdown supported