ARC scale sets: metrics for GitHub request failures and rate limits #214110
Unanswered
iamstarkov
asked this question in
Actions
Replies: 1 comment
|
💬 Your Product Feedback Has Been Submitted 🎉 Thank you for taking the time to share your insights with us! Your feedback is invaluable as we build a better GitHub experience for all our users. Here's what you can expect moving forward ⏩
Where to look to see what's shipping 👀
What you can do in the meantime 💻
As a member of the GitHub community, your participation is essential. While we can't promise that every suggestion will be implemented, we want to emphasize that your feedback is instrumental in guiding our decisions and priorities. Thank you once again for your contribution to making GitHub even better! We're grateful for your ongoing support and collaboration in shaping the future of our platform. ⭐ |
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
🏷️ Discussion Type
Product Feedback
💬 Feature/Topic Area
ARC (Actions Runner Controller)
Discussion Details
Please add metrics for the calls the gha-runner-scale-set listener and controller make to GitHub, so operators can see when GitHub throttles or fails them.
The problem
When the broker, the Actions service or the REST API throttles a scale set, runners stop scaling and no metric changes. The listener logs
Actions service request failedandhonoring rate-limit cooldown, and thegha_*metrics only show the effect later, as queued jobs. During a burst of workflow runs, you can't tell from metrics whether ARC is atmaxRunnersor GitHub is throttling it. actions/actions-runner-controller#4699 is one case of a failing broker stalling the controller.Proposal
Two counters on the listener (
gha_) and the controller (gha_controller_):github_requests_totalbackend(rest,actions,broker),operation(jit_config,message,acquire_jobs, ...),status_code(orerrorwhen no response arrived)github_rate_limited_totalbackend,operation,resource(fromX-RateLimit-Resource),kind(primary,secondary),reason(Actions service exception, such asConfigureTooManyRunnersException)Rate limits follow the same rules as
scaleset.RateLimitError. Each retry attempt counts. Listener metrics go throughlistenerMetricslike the existing ones.actions/scalesetalready allows this:WithHTTPClientaccepts a client with an instrumented RoundTripper, so the change is a transport wrapper in ARC. The legacy controller had similar metrics in actions/actions-runner-controller#312, which scale set mode doesn't use.I opened a PR with this: actions/actions-runner-controller#4758. Feedback on the labels and the approach is welcome, there or here.
All reactions