Prometheus metrics endpoint for monitoring runners #96
Labels
No labels
Stage
Idea
Stage
Ready
No milestone
No assignees
3 participants
Notifications
Due date
No due date set.
Reference
forgejo/forgejo-actions-feature-requests#96
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
How to use this feature request
First hand experience
Sometimes my self hosted instance queues a lot of jobs. Since I only have a few runners, they are not enough and jobs start queuing up.
Needs and benefits
It would provide:
Feature Description
The following metrics:
Up for ideas about other metrics.
What needs to happen before a feature request is ready to be implemented?
Users can complete the first step (accumulating first and experience) on their own, even if this feature request did not catch the eye of someone with the necessary skills to implement it. And when it reaches that point, it will stand out and have a much higher chance of being implemented.
To fully grasp the scope of a feature request, and to brainstorm possible solutions, a feature request will generally wait until several users have provided their perspective.
Thumbs-up reactions help gauge popularity, but do not provide the same amount of useful information.
Results from discussions and additional user experiences are incorporated into a final summary to provide a single reference for the developers working on this change.
This can be done by the author of the issue or anyone else in a followup comment.
Stage/Ideais changed toStage/Ready.Depending on the feature request it can be in Forgejo or Forgejo runner.
A copy/paste of the "Needs and benefit" and "Feature description" should be used, with link to this issue so the developer knows where to find more details if they need to.
This would be great. In our setup i ended up creating another service that queries https://code.forgejo.org/api/swagger#/admin/adminSearchRunJobs and transform the result into Prometheus metrics. It would be great if it was native.
Makes sense.
I expect that this feature will need a lot of research/planning.
I haven't checked whether Forgejo has any metrics capabilities. If it hasn't, we need a suitable tool. Is there something like Micrometer for Go?
How forgiving are tools like Prometheus when it comes to format/variable changes?
What would really help a lot: examples. Develop the charts/alerts you want to have. What data is required to generate them? How does it have to be structured? Let us know. Without that information, this feature will take forever.
@aahlenst Prometheus is already supported in forgejo at least according to the cheat sheet. I think we would just have to make a new collector
Biggest question is what metrics is actually generally applicable