mirror of
https://github.com/actions/actions-runner-controller.git
synced 2025-12-11 03:57:01 +00:00
* Add workflow job metrics to Github webhook server * Fix handling of workflow_job.Conclusion * Make the prometheus metrics exporter for the workflow jobs a dedicated application * chart: Add support for deploying actions-metrics-server * A few improvements to make it easy to cover in E2E * chart: Add missing actionsmetrics.service.yaml * chart: Do not modify actionsMetricsServer.replicaCount * chart: Add documentation for actionsMetrics and actionsMetricsServer Co-authored-by: Colin Heathman <cheathman@benchsci.com>
26 lines
897 B
YAML
26 lines
897 B
YAML
{{- if and .Values.actionsMetricsServer.enabled .Values.actionsMetrics.serviceMonitor }}
|
|
apiVersion: monitoring.coreos.com/v1
|
|
kind: ServiceMonitor
|
|
metadata:
|
|
labels:
|
|
{{- include "actions-runner-controller.labels" . | nindent 4 }}
|
|
{{- with .Values.actionsMetricsServer.serviceMonitorLabels }}
|
|
{{- toYaml . | nindent 4 }}
|
|
{{- end }}
|
|
name: {{ include "actions-runner-controller-actions-metrics-server.serviceMonitorName" . }}
|
|
namespace: {{ .Release.Namespace }}
|
|
spec:
|
|
endpoints:
|
|
- path: /metrics
|
|
port: metrics-port
|
|
{{- if .Values.actionsMetrics.proxy.enabled }}
|
|
bearerTokenFile: /var/run/secrets/kubernetes.io/serviceaccount/token
|
|
scheme: https
|
|
tlsConfig:
|
|
insecureSkipVerify: true
|
|
{{- end }}
|
|
selector:
|
|
matchLabels:
|
|
{{- include "actions-runner-controller-actions-metrics-server.selectorLabels" . | nindent 6 }}
|
|
{{- end }}
|