283ccde24f
ARC runs with metrics disabled, so scale-set behaviour (assigned jobs, desired/idle runners, job startup time) and controller health are invisible. - enable controller and listener metrics on :8080 via chart `metrics:` values - add VMPodScrapes for the controller and listener pods in arc-system - keep runner-namespace labels on listener/ephemeral-runner series so the dashboard filters match - add the upstream ARC Autoscaling Runner Set dashboard (gha-runner-scale-set-0.15.1) resolved to VictoriaMetrics Reviewed-on: #580 Co-authored-by: unkin-agent <unkin-agent@unkin.net> Co-committed-by: unkin-agent <unkin-agent@unkin.net>
41 lines
1.2 KiB
YAML
41 lines
1.2 KiB
YAML
---
|
|
# Controller metrics. gha_controller_*_ephemeral_runners carry the runner
|
|
# namespace, which the dashboard filters on, so restore it over the target's.
|
|
apiVersion: operator.victoriametrics.com/v1beta1
|
|
kind: VMPodScrape
|
|
metadata:
|
|
name: arc-controller
|
|
namespace: arc-system
|
|
spec:
|
|
selector:
|
|
matchLabels:
|
|
app.kubernetes.io/name: gha-rs-controller
|
|
app.kubernetes.io/instance: arc
|
|
podMetricsEndpoints:
|
|
- port: metrics
|
|
path: /metrics
|
|
metricRelabelConfigs:
|
|
- sourceLabels: [__name__, exported_namespace]
|
|
regex: gha_controller_.+_ephemeral_runners;(.+)
|
|
targetLabel: namespace
|
|
---
|
|
# Listener metrics carry their own name/namespace (the runner scale set), and
|
|
# the dashboard also expects the scale-set pod labels.
|
|
apiVersion: operator.victoriametrics.com/v1beta1
|
|
kind: VMPodScrape
|
|
metadata:
|
|
name: arc-listener
|
|
namespace: arc-system
|
|
spec:
|
|
selector:
|
|
matchLabels:
|
|
app.kubernetes.io/component: runner-scale-set-listener
|
|
app.kubernetes.io/part-of: gha-runner-scale-set
|
|
podMetricsEndpoints:
|
|
- port: metrics
|
|
path: /metrics
|
|
honorLabels: true
|
|
relabelConfigs:
|
|
- action: labelmap
|
|
regex: __meta_kubernetes_pod_label_(actions_github_com_scale_set_.+)
|