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

Azure job wait-time per pool #33

Open
JnivDd opened this issue Feb 8, 2021 · 2 comments
Open

Azure job wait-time per pool #33

JnivDd opened this issue Feb 8, 2021 · 2 comments

Comments

@JnivDd
Copy link

JnivDd commented Feb 8, 2021

We have a use case where we need to get the wait time of the jobs in a pool
We also are looking for a way to get wait time for a specific build in a pool
like azure_devops_stats_agentpool_builds_wait_sum

The documentation is rather vague, how exactly are we supposed to use it? I am new to promethous as a whole

This is the intended result
waittimew1
waittimew2

@mblaschke
Copy link
Member

here an example from prometheus:
https://prometheus.io/docs/practices/histograms/#count-and-sum-of-observations

  rate(http_request_duration_seconds_sum[5m])
/
  rate(http_request_duration_seconds_count[5m])

so you can use eg:

rate(azure_devops_stats_agentpool_builds_wait_sum[15m])
/ 
rate(azure_devops_stats_agentpool_builds_wait_count[15m])

@dhavalshah02
Copy link

This leads to NaN values appearing when there is no difference between scrapes. Any way to avoid it. I too believe a direct count is more beneficial

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

3 participants