Note: This endpoint is only available on GitSwarm 2016.3 and above.
This API endpoint allows you to retrieve some information about the current state of Sidekiq, its jobs, queues, and processes.
List information about all the registered queues, their backlog and their latency.
GET /sidekiq/queue_metrics
curl --header "PRIVATE-TOKEN: 9koXpg98eAheJpvBs5tK" https://gitswarm.example.com/api/v3/sidekiq/queue_metricsExample response:
{
"queues": {
"default": {
"backlog": 0,
"latency": 0
}
}
}List information about all the Sidekiq workers registered to process your queues.
GET /sidekiq/process_metrics
curl --header "PRIVATE-TOKEN: 9koXpg98eAheJpvBs5tK" https://gitswarm.example.com/api/v3/sidekiq/process_metricsExample response:
{
"processes": [
{
"hostname": "gitswarm.example.com",
"pid": 5649,
"tag": "gitlab",
"started_at": "2016-06-14T10:45:07.159-05:00",
"queues": [
"post_receive",
"mailers",
"archive_repo",
"system_hook",
"project_web_hook",
"gitlab_shell",
"incoming_email",
"runner",
"common",
"default"
],
"labels": [],
"concurrency": 25,
"busy": 0
}
]
}List information about the jobs that Sidekiq has performed.
GET /sidekiq/job_stats
curl --header "PRIVATE-TOKEN: 9koXpg98eAheJpvBs5tK" https://gitswarm.example.com/api/v3/sidekiq/job_statsExample response:
{
"jobs": {
"processed": 2,
"failed": 0,
"enqueued": 0
}
}List all the currently available information about Sidekiq.
GET /sidekiq/compound_metrics
curl --header "PRIVATE-TOKEN: 9koXpg98eAheJpvBs5tK" https://gitswarm.example.com/api/v3/sidekiq/compound_metricsExample response:
{
"queues": {
"default": {
"backlog": 0,
"latency": 0
}
},
"processes": [
{
"hostname": "gitswarm.example.com",
"pid": 5649,
"tag": "gitlab",
"started_at": "2016-06-14T10:45:07.159-05:00",
"queues": [
"post_receive",
"mailers",
"archive_repo",
"system_hook",
"project_web_hook",
"gitlab_shell",
"incoming_email",
"runner",
"common",
"default"
],
"labels": [],
"concurrency": 25,
"busy": 0
}
],
"jobs": {
"processed": 2,
"failed": 0,
"enqueued": 0
}
}