waiting, active, completed, failed, delayed, paused).
Endpoint (self-hosted only)
- Available on self-hosted Community and Enterprise. Not registered on Cloud.
:queueNameis optional and defaults toworkerJobs(the shared queue). Pass a worker-group queue name (e.g.platform-<groupId>-jobs) to scrape a dedicated queue.- Auth:
Authorization: Bearer <platform API key>(ansk-...key created under platform admin). Platform admin user tokens work too. - Returns
text/plain. Responds404if the queue has not been initialized on this app instance.
Example
Bearer auth works with standard scraper config: Prometheus
authorization.credentials, Azure managed Prometheus bearer_token_file, Grafana Alloy bearer_token. No header-injecting proxy is needed.Queue.exportPrometheusMetrics(). Each queue only reports the states it holds on the app instance being scraped; in a multi-worker-group deployment, scrape each group’s queue by name (platform-<groupId>-jobs / project-<groupId>-jobs). A JSON variant with waiting/active counts only lives at GET /v1/worker-machines/queue-metrics (all editions, used for KEDA autoscaling).