Queue Monitor
Background job queue monitor listing each queue's health, processed/pending/failed counts, and a progress bar comparing jobs processed against the queue's capacity for the window. Perfect for an internal ops dashboard watching Sidekiq-, BullMQ-, or SQS-style workers.
Docs
Installation
A real shadcn registry command, not a copy-paste stand-in: it fetches this block plus its badge dependencies and any missing npm packages, and installs them straight into your project.
npx shadcn add https://staaarter.com/r/queue-monitor.jsonPrefer not to use the CLI? Copy the source from the Code toggle above into src/components/blocks/devtools/devtools7.tsx instead.
Usage
The file also exports devtools7Demo, the exact props behind the preview above. Spread it to get a working section in one line, then replace it with your own data.
import { Devtools7, devtools7Demo } from "@/components/blocks/devtools/devtools7"; export default function Page() { return <Devtools7 {...devtools7Demo} />; }
Props
| Prop | Type | Default | Description |
|---|---|---|---|
| heading | string | "Queue monitor" | Section heading. |
| description | string | "Background job throughput across every queue in the cluster." | Section intro text below the heading. |
| queues | QueueStat[] | none | The queues rendered as rows, in the order given. |
| className | string | none | Extra classes for the outer section element. |
Types
type QueueStat = { name: string; status: "healthy" | "warning" | "critical"; processed: number; pending: number; failed: number; capacity: number; };
Behavior notes
- status is a plain field you set per queue, not something derived from processed/pending/failed at render time; the block trusts whatever health verdict your monitoring pipeline already computed rather than re-deriving it from raw counts.
- The capacity bar's fill percentage (processed / capacity) is plain render-time arithmetic on the fixed props, and its color is tied to the queue's status field, not to the percentage itself.
- There is no live polling, sorting, or filtering; the rows render in the exact order of the queues array on every request.
- Status colors (emerald/amber/red) are a fixed, non-semantic accent scoped to the badge and bar fill only, per this category's status-accent convention.
More DevTools Blocks
View all →api-endpoints-sample-call
API Endpoints With Sample Call
Reference list of API endpoints paired with a live sample request and response panel.
cicd-pipeline-status
CI/CD Pipeline Status
Recent CI/CD pipeline runs with per-stage status chips and overall run badges.
code-diff-viewer
Code Diff Viewer
Unified code diff panel with a file header change summary and colored addition/deletion lines.
keyboard-shortcuts-reference
Keyboard Shortcuts Reference
Grouped keyboard shortcut reference with keycap-styled key combos.
performance-waterfall
Performance Waterfall
Network request waterfall chart with cascading timing bars colored by duration.
service-health-board
Service Health Board
Infrastructure status board with a live summary strip and per-service uptime, latency, and health.