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

Grafana dashboard #45

Open
ghost opened this issue Oct 27, 2021 · 5 comments
Open

Grafana dashboard #45

ghost opened this issue Oct 27, 2021 · 5 comments

Comments

@ghost
Copy link

ghost commented Oct 27, 2021

Few people have raised issue for grafana dashboard but it doesn't addressed clearly. Would you please clarify on this point. Do you have any grafana json for this project? It'll be really helpful to entire community on top of fetching data into prometheus. Or direct us to right link/doc.

@mblaschke
Copy link
Member

I'm using Azure DevOps only at work, that's why it always a little bit difficult.

how about this dashboard?
https://gist.github.com/mblaschke/ef86524d9350d45143cbbc5d2da674b1

@Shaked
Copy link

Shaked commented Sep 13, 2022

@mblaschke this is a great example.

I have created one more graph using max by(name) (max_over_time(azure_devops_build_job{result="succeeded", type="duration"}[$__interval])) / 60 which shows the longest jobs based on duration. However, I'd like to somehow join it with the buildName, so that it would be easy to find which build the job belongs to. Any idea how I could do that?

@mblaschke
Copy link
Member

you could join it with azure_devops_build_info based on projectID and buildID

@brunoscota
Copy link

@mblaschke thank you for your contribution. Its a good starting point! kudos! ;)

@kirannhegde
Copy link

@Shaked In response to your question, the query would be something like:
topk(1,((max_over_time(azure_devops_build_job{result="succeeded", type="duration"}[$__interval])) / 60 * on (buildID) group_left(buildName) azure_devops_build_info)) by (name)

Hope this helps.

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

4 participants