hostatlas/queue-monitor
Composer 安装命令:
composer require hostatlas/queue-monitor
包简介
Push Laravel queue metrics to HostAtlas for monitoring, alerting, and visualization.
README 文档
README
Push Laravel queue metrics to HostAtlas for real-time monitoring, alerting, and visualization.
HostAtlas is an infrastructure visibility platform with 340+ features — server monitoring, uptime checks, incident management, attack defense, AI analysis, and more. The Queue Monitor package connects your Laravel queues to the HostAtlas dashboard, so you can track queue health alongside the rest of your infrastructure.
Sign up free — no credit card required.
Requirements
- PHP 8.2+
- Laravel 11 or 12
- A HostAtlas account with an API key
Installation
composer require hostatlas/queue-monitor
The service provider is auto-discovered. No manual registration needed.
Configuration
Publish the config file:
php artisan vendor:publish --tag=hostatlas-queue-config
Add to your .env:
HOSTATLAS_URL=https://my.hostatlas.app HOSTATLAS_API_KEY=ha_your_api_key_here HOSTATLAS_SERVER=web-prod-01
| Variable | Description | Default |
|---|---|---|
HOSTATLAS_URL |
Your HostAtlas instance URL | https://my.hostatlas.app |
HOSTATLAS_API_KEY |
API key from HostAtlas (Settings > API Keys) | — |
HOSTATLAS_SERVER |
Server hostname (must match a server in HostAtlas) | System hostname |
Queue Selection
By default, all queues are auto-detected. To monitor specific queues only, edit config/hostatlas-queue.php:
'queues' => ['default', 'emails', 'notifications'],
Use ['*'] to auto-detect all queues (default).
Usage
Via Scheduler (recommended)
Add to your routes/console.php:
Schedule::command('hostatlas:queue-metrics')->everyMinute();
Manual
php artisan hostatlas:queue-metrics
Example output:
default: 42 pending, 2 failed
emails: 8 pending, 0 failed
Queue metrics reported to HostAtlas.
Supported Queue Drivers
| Driver | Auto-detect Queues | Metrics |
|---|---|---|
| Redis | Yes (scans Redis keys) | Size, failed, system type |
| Database | Yes (groups by queue column) | Size, failed, processing count |
| SQS | No (uses configured queue) | Size |
What Gets Reported
Each queue reports:
- Queue name — auto-detected or configured
- Pending jobs — current queue size
- Failed jobs — count from
failed_jobstable - Processing jobs — currently being processed (database driver)
- System type —
laravel(auto-set)
API Push Endpoint
The package pushes to POST {HOSTATLAS_URL}/api/v1/queue/push with Bearer token authentication. You can also push metrics from any language or framework using the same endpoint:
curl -X POST https://my.hostatlas.app/api/v1/queue/push \ -H "Authorization: Bearer ha_your_api_key" \ -H "Content-Type: application/json" \ -d '{ "server": "web-prod-01", "queues": [ {"name": "default", "size": 42, "failed": 2, "processing": 3, "system": "laravel"} ] }'
Multi-System Support
The HostAtlas queue dashboard supports metrics from multiple systems:
- Laravel (this package)
- BullMQ (Node.js — via API push)
- Sidekiq (Ruby — via API push)
- Celery (Python — via API push)
Security
- API key is transmitted via
Authorization: Bearerheader over HTTPS - No sensitive data is collected — only queue names and counts
- 10-second HTTP timeout per request
- Errors are reported via Laravel's
report()helper (logged, never thrown)
License
MIT License. See LICENSE for details.
Built by Akyros Labs LLC — hello@akyroslabs.com
hostatlas/queue-monitor 适用场景与选型建议
hostatlas/queue-monitor 是一款 基于 PHP 开发的 Composer 扩展包,目前已累计 0 次下载、GitHub Stars 达 0, 最近一次更新时间为 2026 年 04 月 03 日, 在 PHP 生态内属于活跃度较高的组件。
它主要适用于以下技术方向: 「redis」 「queue」 「monitoring」 「laravel」 「horizon」 「hostatlas」 等业务场景。在实际项目中,围绕这些方向常见需要落地的问题包括:接口对接、性能调优、并发安全、与既有框架(Laravel / ThinkPHP / Yii / Webman 等)的兼容适配,以及生产环境的日志埋点与稳定性保障。
我们在过去多个企业项目中使用过 hostatlas/queue-monitor 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。
基于 hostatlas/queue-monitor 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。
线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。
承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。
与 hostatlas/queue-monitor 相关的其它包
同方向 / 同关键字的高下载量 PHP Composer 包推荐,方便对比选型:
A Symfony bundle for chameleon-system/sanitycheck
Microservice RPC through message queues.
PHP AMQP Binding Library
A Laravel package to monitor queue jobs.
The CodeIgniter Redis package
SoftWax Health Check Bundle for Symfony framework
统计信息
- 总下载量: 0
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 43
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2026-04-03