mirror of
https://github.com/actions/actions-runner-controller.git
synced 2026-01-03 07:57:32 +08: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>
27 lines
924 B
YAML
27 lines
924 B
YAML
{{- if .Values.actionsMetricsServer.enabled }}
|
|
apiVersion: v1
|
|
kind: Service
|
|
metadata:
|
|
name: {{ include "actions-runner-controller-actions-metrics-server.fullname" . }}
|
|
namespace: {{ .Release.Namespace }}
|
|
labels:
|
|
{{- include "actions-runner-controller.labels" . | nindent 4 }}
|
|
{{- if .Values.actionsMetricsServer.service.annotations }}
|
|
annotations:
|
|
{{ toYaml .Values.actionsMetricsServer.service.annotations | nindent 4 }}
|
|
{{- end }}
|
|
spec:
|
|
type: {{ .Values.actionsMetricsServer.service.type }}
|
|
ports:
|
|
{{ range $_, $port := .Values.actionsMetricsServer.service.ports -}}
|
|
- {{ $port | toYaml | nindent 6 }}
|
|
{{- end }}
|
|
{{- if .Values.metrics.serviceMonitor }}
|
|
- name: metrics-port
|
|
port: {{ .Values.metrics.port }}
|
|
targetPort: metrics-port
|
|
{{- end }}
|
|
selector:
|
|
{{- include "actions-runner-controller-actions-metrics-server.selectorLabels" . | nindent 4 }}
|
|
{{- end }}
|