waiting, active, completed, failed, delayed, paused).
Endpoint
:queueNameis optional and defaults toworkerJobs(the shared queue). Pass a worker-group queue name (e.g.platformJobs:<groupId>) to scrape a dedicated queue.- Auth: internal admin endpoint — send the
api-keyheader set toAP_API_KEY(the same key used by the other/v1/admin/*routes), not a platform bearer token. - Returns
text/plain. Responds404if the queue has not been initialized on this app instance.
Example
Prometheus does not send arbitrary request headers, and this endpoint expects the
api-key header (not Authorization). Point Prometheus at a reverse proxy that injects api-key: $AP_API_KEY, or scrape it from a sidecar that adds the header.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.