How are you doing metrics? #1713
-
Hi All I have since deployed ARC and have managed to get the self hosted runners up and running. We currently use Grafana internally so looking to see how I could use this with the runner deployment metrics Any help appreciated! |
Beta Was this translation helpful? Give feedback.
Replies: 10 comments 24 replies
-
You can use Prometheus to scrape metrics on action-controller-runner. Then you can connect Prometheus to Grafana The current version exposed following metrics.
In next release we will have following metrics too apart from above ones (PR already merged)
For some constraints we were using only the PercentBusy metric and not webhook metrics, we created a Grafana dashboard to track autoscaling metrics. |
Beta Was this translation helpful? Give feedback.
-
@debugger24 that's great, thanks for the help! set { Did you have to do any additional Config to get this working? Installed Prometheus Stack : |
Beta Was this translation helpful? Give feedback.
-
In my case,
Config I used was In https://prometheus-community.github.io/helm-charts/
In https://actions-runner-controller.github.io/actions-runner-controller metrics:
serviceAnnotations: {}
serviceMonitor: false
serviceMonitorLabels: {}
port: 8443
proxy:
enabled: false
image:
repository: quay.io/brancz/kube-rbac-proxy
tag: v0.13.0 Disabled If you use Prometheus Operator, and enable |
Beta Was this translation helpful? Give feedback.
-
Strangely when trying to hit the endpoint I am getting Connection Refused ?
However when I enable port forwarding it works
|
Beta Was this translation helpful? Give feedback.
-
Please i need some help in getting all the metrics provided by ARC.
have been added to the new release ( runner-controller 0.22.0 ). So i upgraded my controllers to the new version but still just seeing only the following metrics
We do use CDK to deploy the Helm resources in Eks and my configuration is as follows
Chart-Version: actions-runner-controller-0.22.0 Please can someone help me figure this out? |
Beta Was this translation helpful? Give feedback.
-
Running chart version 0.22.0 I also can't see any of the new metrics. I haven't upgraded, I've just added some values to my Prometheus and ARC Helm charts: kube-prometheus:
ARC:
Pods:
The
I can't see those new metrics on the
|
Beta Was this translation helpful? Give feedback.
-
Also this issue is open from another user: #2799 I'm having a similar issue. I have ARC release update to the last version, CRDs are update also. But I just get 2 metrics
This is my configuration
|
Beta Was this translation helpful? Give feedback.
-
Hi, I am using v.027.5 image version and though I have jobs in queue, I dont find see these metrics reflecting the same,
I am looking for a metric on how many jobs are in queue, so I can setup alert on that, if the queue is too big. |
Beta Was this translation helpful? Give feedback.
-
I can also only see two 2 metrics with everything latest? Any idea? horizontalrunnerautoscaler_spec_max_replicas |
Beta Was this translation helpful? Give feedback.
-
Anyone looking for a dashboard that works with the new metrics should check out this blog: https://www.kenmuse.com/blog/enabling-github-arc-metrics/ I have found that the cardinality on the gha_* metrics can be insane because they include runner_name (pod name) and runner_id (job id) essentially making one series per data point which prevents even using To clean up your metrics try using a service monitor configured like this. You'll need two, one for the controller, one for the listener (bulk of metrics). This is the one for the listener:
|
Beta Was this translation helpful? Give feedback.
You can use Prometheus to scrape metrics on action-controller-runner.
Then you can connect Prometheus to Grafana
The current version exposed following metrics.
horizontalrunnerautoscaler_spec_min_replicas
horizontalrunnerautoscaler_spec_max_replicas
horizontalrunnerautoscaler_status_desired_replicas
In next release we will have following metrics too apart from above ones (PR already merged)
horizontalrunnerautoscaler_replicas_desired
horizontalrunnerautoscaler_runners
horizontalrunnerautoscaler_runners_registered
horizontalrunnerautoscaler_runners_busy
horizontalrunnerautoscaler_terminating_busy
horizontalrunnerautoscaler_necessary_replicas
horizontalrunnerautoscaler_workflow_runs_comp…