Replies: 1 comment 2 replies
-
Well after some investigation, the 401 comes from the missing CR & CRB described here. |
Beta Was this translation helpful? Give feedback.
2 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.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi,
I'm using ARC v0.27.1 deployed with the helm chart via ArgoCD, RunnerSets and HRA with
I have an Ingress exposing the github-webhook service and succesfully connected it to the github org, receiving events and running runners.
However I'm having some troubles making the monitoring work with the Prometheus Operator in cluster. I guess I'm missing a bit of documentation.
What is the expected behavior of actionsMetricsServer ? Is it supposed to be exposed as another webhook (and another app in github side) to be able to receive events and in turn expose the metrics ? Is it supposed to work together with the 2 other possible ServiceMonitor from the helm chart ?
When taking a look at the code, I see the serviceMonitor in
actionsmetrics.servicemonitor.yaml.yml
and in the actions metrics helper :
instance is :
Until here it looks fine but then, if I look at the service from
actionsmetrics.service.yaml
(which I suppose is the Service that the ServiceMonitor aims to monitor :which is defined in the main helper (not the one dedicated to actions metrics !) :
So it looks like the ServiceMonitor is filtering on an instance label expecting something like "app.kubernetes.io/instance: gh-actions-runner-system-actions-metrics-server" and the actual service has only the "app.kubernetes.io/instance: gh-actions-runner-system" label so it won't pick it. But I haven't seen any issue regarding this so I guess I'm missing something. If someone has an idea it would be great !
Anyway, if using a custom ServiceMonitor from outside of the chart, I can select the service and the prometheus operator see some endpoints but I get a 401 unauthorized. Same issue when I port-forward & curl the pod directly. Any ideas ?
Is anyone able to share a working actionsMetricsServer and ServiceMonitor configuration ?
Thanks for reading !
Beta Was this translation helpful? Give feedback.
All reactions