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

Poll Actions Runner API for gauge metrics on runner pools #14

Open
janakerman opened this issue Apr 20, 2022 · 4 comments
Open

Poll Actions Runner API for gauge metrics on runner pools #14

janakerman opened this issue Apr 20, 2022 · 4 comments
Assignees
Labels
enhancement New feature or request

Comments

@janakerman
Copy link
Contributor

Perhaps it would make sense to add support for metrics on self-hosted runners using the Github Actions API? It would be possible to export gauge metrics showing the numbers of online/offline & busy/idle runners for a runner group within an organisation/enterprise.

Adding more functionality based on polling comes with the increased potential of hitting API rate limits. The minimum Github App limits (5000 per hour) this works out at about ~80 requests per minute which is probably sufficient for most use cases. If it became an issue we could

  • Providing configurable polling frequency
  • Conditional HTTP requests (If-None-Match)
  • Exporting Github rate limit usage (maybe useful anyway!)

Docs:

@cpanato
Copy link
Owner

cpanato commented May 2, 2022

sounds a great idea!

@cpanato cpanato added enhancement New feature or request help wanted Extra attention is needed good first issue Good for newcomers labels May 2, 2022
@apoorva-marisomaradhya
Copy link

Hello @cpanato ! Any update on this issue? I am looking to get metrics for self-hosted github runners and this exporter doesn't seem to provide metrics for self-hosted yet.

@cpanato
Copy link
Owner

cpanato commented Jan 20, 2024

@apoorva-marisomaradhya sorry for the delay, is something you would like to contribute?

@peterhalasz
Copy link
Contributor

Hi!
I would love to add metrics for self-hosted runners, that would come in handy for sure.
I can put up a PR for it in the next few days.

@cpanato cpanato removed help wanted Extra attention is needed good first issue Good for newcomers labels Feb 1, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

4 participants