azure-devops-exporter icon indicating copy to clipboard operation
azure-devops-exporter copied to clipboard

Retrieve assigned request for agent

Open EwanNoble opened this issue 5 years ago • 4 comments

I am trying to retrieve all agents and see if they have a currently assigned request, however if I join the two metrics:

azure_devops_agentpool_agent_info
+ on(agentPoolAgentID) group_left() (azure_devops_agentpool_agent_job)

it only returns agents that have an assigned request but not the rest. I am trying to graph agent pool utilisation and need a way to find used agents / total agents. Thanks

EwanNoble avatar Jul 15 '19 15:07 EwanNoble

If this is something difficult to query then perhaps a flag label on the agent like this? #10

EwanNoble avatar Jul 15 '19 16:07 EwanNoble

Another alternative would be to add a separate metric for agentPoolUtilisation as a number

EwanNoble avatar Jul 16 '19 08:07 EwanNoble

Bump

chelnak avatar Aug 13 '19 20:08 chelnak

hm.. will have a look in the next days

mblaschke avatar Sep 08 '19 19:09 mblaschke