mozilla-releng / pending_queue_monitor

Monitors the pending tasks queue on different machines for Taskcluster Infrastructure.
Mozilla Public License 2.0
1 stars 3 forks source link

Pending Queue Monitor

Monitors the pending tasks queue on different machines for Taskcluster Infrastructure.

List of clusters to be monitored

Getting data from taskcluster

It is done using the Queue API/Service from taskcluster and a typical request looks like:

for the releng-hardware

https://queue.taskcluster.net/v1/pending/releng-hardware/gecko-t-osx-1010

and for AWS-Provisioned machines:

https://queue.taskcluster.net/v1/pending/aws-provisioner-v1/gecko-t-linux-xlarge

The repose is a JSON that looks like:

{

    "provisionerId": "releng-hardware",
    "workerType": "gecko-t-win10-64-ms",
    "pendingTasks": 0

}

We are going to do a request once at 5-10 minutes, so that would be 10-12 requests and hour for each cluster type.

How to display the values/data

For the moment we want to display a few graphs with fixed time-base:

Storing data

Since all of this data is going to be later used and graphs updated as times fly, we are putting the problem of how are we going to store all of the data. The most suited case for this would be CSV files for each type of clusters.

Storing the generated graphs

Short answer would be: Adding them to the github repository and embedding them in a markdown.

For later use: