mcpField
L
laravel:horizon:metrics-and-dashboards

laravel:horizon:metrics-and-dashboards

github.com/jpcaparasCloud & DevOps157114 installsUpdated 17w ago
Repository

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

  1. 01Named queues and job tags
  2. 02Worker concurrency and retry settings
  3. 03Failure handling and idempotency
  4. 04Queue metrics and health indicators
  5. 05Dispatch and integration test guidance

Use cases

  1. 01Tracking jobs by domain identifiers
  2. 02Monitoring backlog and queue performance
  3. 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-dashboards

After installing, type/laravel:horizon:metrics-and-dashboardsin Claude Code to confirm it loaded.

Details

From the project README

Horizon: 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