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

Certain Metrics missing from export

Open brittandeyoung opened this issue 4 years ago • 5 comments

Hello, I am currently trying to use this exporter to collect metrics for our Azure DevOps organization. I have been able to successfully collect metrics using this docker image, but certain metrics are not present. Here are example metrics I have found that is completely missing (some of these are included in the example queries):

azure_devops_agentpool_agent_info azure_devops_agentpool_usage

Is there a setting I have wrong?

brittandeyoung avatar May 19 '21 15:05 brittandeyoung

Which version are you using? Have you set AZURE_DEVOPS_FILTER_AGENTPOOL to the list of agentpool ids which you want to scrape?

Maybe this needs to be renamed to something more easier/clearer 🤔

mblaschke avatar May 19 '21 16:05 mblaschke

Setting a value for that got the metrics to populate. I made the bad assumption that if you did not set a whitelist, that it would simply collect all the metrics.

I think it would help to add in the documentation that in order to collect the agentpool data and project data that you need to populate the corresponding filter option.

brittandeyoung avatar May 19 '21 18:05 brittandeyoung

Will rename it to AZURE_DEVOPS_AGENTPOOL in the next release (with a panic if AZURE_DEVOPS_FILTER_AGENTPOOL is detected).

mblaschke avatar May 23 '21 14:05 mblaschke

Is it possible to pass in a list of IDs? I can only get it work by passing in the flag multiple times i.e. --whitelist.agentpool=4 --whitelist.agentpool=11

pjmpsu avatar Jun 23 '21 14:06 pjmpsu

You can pass multiple IDs using the environment variable. It's not possible with parameters.

mblaschke avatar Jun 27 '21 12:06 mblaschke