-
Notifications
You must be signed in to change notification settings - Fork 51
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Number of Jobs in queue (waiting for free agents) in Agent Pool #17
Comments
Hm.. is there an rest api for that? |
Hi I am not aware of such Rest API Maybe we can extrapolate the number of waiting for Agent with a formula Number of jobs Wating for Agent in a Pool= Number of Jobs requests in the Pool - Number of Agents in the Pool So We just need Number of Jobs requests in the Pool and Number of Agents in the Pool Do we have such a metrics now? I think Number of Agents in the Pool is the but do we have Number of Jobs requests in the Pool metric? Please let me know if you have some ideas Thanks |
Hi Again, I found this Rest API https://{organization}.visualstudio.com/_apis/distributedtask/pools/{poolid}/jobrequests is returning the jobrequests for specific pool in JSON format In the JSON result, each build have some properties, if the build started to run on an agent it gets a property We can count how many of those jobs without the property What do you think? Please let me know if it is feasable Thanks Alberto |
We have now a metric doing that |
Could anyone please help on that, How we can setup prometheus for only this use case. |
Hi
We started to use this Azure DevOps exporter and it is working really well.
We need to have the information on how many jobs are in queue in real time (waiting for a free Agent) per Agent Pool.
We looked to get it but we did not find a way also combining different others metrics
Is it possible to get this metric?
Could you help us on that?
Thanks
Alberto
The text was updated successfully, but these errors were encountered: