Skip to content

Incorrect count returned in azure_devops_stats_project_builds #72

@roshini-cp

Description

@roshini-cp

Hi,
I'm using azure_stats_project_builds metric to count the number of succeded builds in a specific project for a specific builddefinitionid, however I'm observing that count returned in this metrics is incorrect for my project, it seems like a pattern is getting followed here.

One of the scenario I have observed is:

azure_devops_stats_project_builds{buildDefinitionID="XXX",projectID:"XXX", result="succeeded"} 2
this is when the exporter is initailly installed for the collection (there were no build running/created in this project during installation)

after 30 mins the same metric counter is increased by 2 (there is no build that is succeeded in the past 30 mins) azure_devops_stats_project_builds{buildDefinitionID="XXX",projectID:"XXX", result="succeeded"} 4

Now a build gets succeeded in the project, the count gets increased to 7
azure_devops_stats_project_builds{buildDefinitionID="XXX",projectID:"XXX", result="succeeded"} 7

and agin after 30 mins metric shows the value as 10 (again there is no build that is succeded or created/queued/cancelled in that project)
azure_devops_stats_project_builds{buildDefinitionID="XXX",projectID:"XXX", result="succeeded"} 10

(similar observations for failed/cancelled builds even with the different projects)

What could be the issue here?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions