How to enable metrics on the AutoscalingRunnerSet or AutoscalingListener? #2894
-
Hi! I'm using, gha-runner-scale-set-controller 0.5.0. The installation method is helm chart from this repository. I've enabled metrics for the gha-runner-scale-set-controller uncomment this block https://github.com/actions/actions-runner-controller/blob/master/charts/gha-runner-scale-set-controller/values.yaml#L83. But i was searching with no luck to find how to enable metrics or expose this for listener AutoscalingListener or AutoscalingRunnerSet, to expose other gha_* metrics which are present on this Grafana dashboard https://github.com/actions/actions-runner-controller/tree/master/docs/gha-runner-scale-set-controller/samples/grafana-dashboard. |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 5 replies
-
How are you scraping the metrics? |
Beta Was this translation helpful? Give feedback.
-
Documentation for metrics is available in the link below. The listener (or as many as you have configured) and the controller manager pods should be exposing separate metrics ports and endpoints. Make sure to scrape all of them. |
Beta Was this translation helpful? Give feedback.
-
To enable metrics for AutoscalingListener or AutoscalingRunnerSet, you can simply follow a similar approach to what you did for gha-runner-scale-set-controller. Just uncomment the relevant blocks in the values.yaml file, like you did before. If you need further assistance or specific guidance, feel free to check out Crawlbase for comprehensive documentation and support |
Beta Was this translation helpful? Give feedback.
Documentation for metrics is available in the link below. The listener (or as many as you have configured) and the controller manager pods should be exposing separate metrics ports and endpoints. Make sure to scrape all of them.
https://docs.github.com/en/actions/hosting-your-own-runners/managing-self-hosted-runners-with-actions-runner-controller/deploying-runner-scale-sets-with-actions-runner-controller#enabling-metrics