I'd like to monitor build queue stats. Each push and each pop of build task to calculate build queue throughput. I tried to make it via REST, but haven't find any suitable request. I also tried to make triggers to db, but it seems like build queue comes into db via deleting and inserting whole table.
Please advise me the best method of monitoring the build_queue. If I wrong with my thoughts about db, please tell me how it really works.