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

Any Example Dashboards? #194

Open
SultanSGillani opened this issue Apr 5, 2023 · 5 comments
Open

Any Example Dashboards? #194

SultanSGillani opened this issue Apr 5, 2023 · 5 comments
Labels
docs Related to documentation

Comments

@SultanSGillani
Copy link

Do you have any example dashboards for this maybe for grafana?

or is there a way you can possibly add some example dashboards in the repository?

thanks

@tboerger
Copy link
Member

tboerger commented Apr 6, 2023

So far I don't have an example dashboard, but it would make sense to upload one to grafana and link to it from the docs.

@tboerger tboerger added the docs Related to documentation label Nov 29, 2023
@dlouvier
Copy link

1️⃣ I came here searching for the same :)

I'll start also working now because I would like to use this exporter to expose our DORA metrics.
If I came out with something useful, I will share.

@matheusgiuliano
Copy link

@dlouvier hey, I wonder if you managed to come out with something 😬
I also want to expose DORA metrics but I'm using another exporter, but thinking about migrating to this one.

@tboerger
Copy link
Member

tboerger commented Mar 3, 2024

On the Matrix channel he mentioned something like this:

Hi, I just wanted to know, I kind of solve this problem differently:

Something like this:
count by (repo,run) (github_workflow_status{status="in_progress",repo=~"$REPOSITORY"} unless (github_workflow_status{status="in_progress",repo=~"$REPOSITORY"} offset 3m)) or vector(0)

@ardole
Copy link

ardole commented Oct 14, 2024

Hi here :)

I'm creating a dashboard with the exporter.

I want to have a table with a list of all our projects using the same workflow and their status on main.
Do you have an idea on how to get the latest status for each ? the query need to

  • get the latest record by owner, repo and branch
  • get the status (inprogress or failed or success...etc.) of this latest

If i do:

topk(1, github_workflow_status{branch=~"$branch",name=~"$workflowname"}) by (workflow, owner, repo, branch)

Then i have the table as i want, and i can create links to github and use colors depending on the status.

Problem with topk is that some data are missing, it does not take the time range in parameter and for some reasons i can't explain, only a few workflows from latest days appear in the result.

Tried solution with last_over_time but status is lost after group by, don't know how to do else !

If anyone has an idea...

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

No branches or pull requests

5 participants