webdevops / azure-devops-exporter

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

feat(issue-94): allow fetching all builds and other than completed #102

Closed Breee closed 2 months ago

Breee commented 4 months ago

This pull request helps with solving https://github.com/webdevops/azure-devops-exporter/issues/94 It:



- if `FetchAllBuildsFilter` specifies project names for which ALL builds shall be fetched, not only completed ones.
- if `FilterTimelineState` can be used to also include timeline states other than `completed`, e.g. `inProgress` and `pending`  if you want to get tasks that are not completed yet 

be aware that these two settings can have performance impact on the exporter. 
i'll provide some monitoring insights soonish 

i had to remove the min time for the `all` statusfilter because of: 

`{"$id":"1","innerException":null,"message":"The status filter All is not valid when combined with the query order filter FinishTimeDescending.","typeName":"Microsoft.TeamFoundation.Build.WebApi.InvalidBuildQueryException, Microsoft.TeamFoundation.Build2.WebApi","typeKey":"InvalidBuildQueryException","errorCode":0,"eventId":3000}`

which is not logged btw
Breee commented 4 months ago

i'm not happy yet with memory / cpu consumption -> so i'll go a different route

sonarcloud[bot] commented 4 months ago

Quality Gate Passed Quality Gate passed

Issues
2 New issues
0 Accepted issues

Measures
0 Security Hotspots
0.0% Coverage on New Code
0.0% Duplication on New Code

See analysis details on SonarCloud

sonarcloud[bot] commented 2 months ago

Quality Gate Passed Quality Gate passed

Issues
1 New issue
0 Accepted issues

Measures
0 Security Hotspots
0.0% Coverage on New Code
0.0% Duplication on New Code

See analysis details on SonarCloud