Keyboard shortcuts

Press or to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

Metrics API

GET /metrics

Returns aggregate system metrics.

curl http://localhost:6390/metrics

Response: 200 OK

{
  "uptime_secs": 3600,
  "version": "0.1.0",
  "jobs": {
    "total": 1500,
    "pending": 42,
    "running": 8,
    "completed": 1420,
    "dead": 30
  },
  "queues": [
    {
      "name": "default",
      "paused": false,
      "depth": 30,
      "in_flight": 5
    },
    {
      "name": "emails",
      "paused": false,
      "depth": 12,
      "in_flight": 3
    }
  ],
  "schedules": {
    "total": 5,
    "enabled": 4
  }
}

Field Descriptions

FieldDescription
uptime_secsSeconds since the server started
versionmininq version from Cargo.toml
jobs.totalTotal job count across all statuses
jobs.pendingJobs waiting to be picked up
jobs.runningJobs currently being executed
jobs.completedSuccessfully completed jobs
jobs.deadJobs that exhausted retries or hit permanent failure
queues[].nameQueue name
queues[].pausedWhether the queue is paused
queues[].depthNumber of pending jobs in this queue
queues[].in_flightNumber of currently running jobs in this queue
schedules.totalTotal number of schedules
schedules.enabledNumber of enabled (active) schedules