webdevops / azure-devops-exporter

Prometheus exporter for Azure DevOps (VSTS) including agent pools, builds, releases, deployments, pullrequests and repo stats
MIT License
147 stars 57 forks source link

Certain Metrics missing from export #37

Open brittandeyoung opened 3 years ago

brittandeyoung commented 3 years ago

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?

mblaschke commented 3 years ago

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 🤔

brittandeyoung commented 3 years ago

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.

mblaschke commented 3 years ago

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

pjmpsu commented 3 years ago

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

mblaschke commented 3 years ago

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