Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to use Stage/Job/Tasks data #87

Open
sitofabi opened this issue Apr 18, 2024 · 0 comments
Open

How to use Stage/Job/Tasks data #87

sitofabi opened this issue Apr 18, 2024 · 0 comments

Comments

@sitofabi
Copy link

Hi all,

i have the exporter running with our azure devops server and the data is exported into prometheus. Now I would like to draw some diagrams out of it, e.g. how long was the duration of a stage yesterday, 1 week ago or one month ago. What is the trend by executing the stage. Is the needed time going down or up. When I look in the scraped data I see something like this (some labels removed for better representation)

# HELP azure_devops_build_stage Azure DevOps build stages
# TYPE azure_devops_build_stage gauge
azure_devops_build_stage{buildDefinitionID="11785"fault",projectID="32",result="succeeded",type="duration"} 3588.38
azure_devops_build_stage{buildDefinitionID="11785"fault",projectID="32",result="succeeded",type="errorCount"} 0
azure_devops_build_stage{buildDefinitionID="11785"fault",projectID="32",result="succeeded",type="finished"} 1.713345972e+09
azure_devops_build_stage{buildDefinitionID="11785"fault",projectID="32",result="succeeded",type="started"} 1.713342383e+09
azure_devops_build_stage{buildDefinitionID="11785"fault",projectID="32",result="succeeded",type="succeeded"} 1
azure_devops_build_stage{buildDefinitionID="11785"fault",projectID="32",result="succeeded",type="warningCount"} 0

How could I now write a query that takes the finished value as timestamp and the duration as value? As far as I know this is not possible in prometheus, isn't it? So what's the benefit of putting these data into the database then? What are valuable queries that could be performed on the data for stages, jobs, or tasks?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant