github_exporter
github_exporter copied to clipboard
Any Example Dashboards?
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
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.
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 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.
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)
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...