github_exporter icon indicating copy to clipboard operation
github_exporter copied to clipboard

Any Example Dashboards?

Open SultanSGillani opened this issue 2 years ago • 6 comments

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

SultanSGillani avatar Apr 05 '23 18:04 SultanSGillani

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 avatar Apr 06 '23 06:04 tboerger

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.

dlouvier avatar Jan 24 '24 08:01 dlouvier

@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.

matheusgiuliano avatar Feb 29 '24 15:02 matheusgiuliano

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)

tboerger avatar Mar 03 '24 19:03 tboerger

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...

ardole avatar Oct 14 '24 10:10 ardole