PrometheusMetrics

Get task distribution by queue

get

Returns grouped task count per domain and detailed task information

Authorizations
Query parameters
queue_namestringOptional

The name of the queue to get metrics for

Responses
200
OK
application/json
get
GET /api/v1/prometheus_metrics/ HTTP/1.1
Host: sandbox.akinon.com
Authorization: YOUR_API_KEY
Accept: */*
200

OK

{
  "orders": {
    "total": 663,
    "tasks": {
      "omnitron.orders.tasks.send_direct_cancellation_mail": {
        "quantity": 98
      },
      "omnitron.orders.tasks.async_synchronize_vendor_orders": {
        "quantity": 41
      }
    }
  },
  "celery": {
    "total": 6,
    "tasks": {
      "omnitron.catalogs.tasks.validate_catalog": {
        "quantity": 6
      }
    }
  },
  "omnitron.catalogs.tasks.upsert_product_price_list_task": [
    0,
    {}
  ]
}

Was this helpful?