Skip to content

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

@janakerman

Description

@janakerman

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:

Metadata

Metadata

Assignees

Labels

enhancementNew feature or request

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions