azure-devops-exporter
azure-devops-exporter copied to clipboard
Retrieve assigned request for agent
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
If this is something difficult to query then perhaps a flag label on the agent like this? #10
Another alternative would be to add a separate metric for agentPoolUtilisation as a number
Bump
hm.. will have a look in the next days