chart: Add additional labels to serviceMonitor (#670)

Add a way to add additional labels for service monitor. Could be helpful in case if you are using unified labels to scrape the metrics in k8s
This commit is contained in:
Kirill Bilchenko
2021-07-03 09:14:59 +03:00
committed by GitHub
parent 67031acdc4
commit e5a9d50cb6
4 changed files with 8 additions and 0 deletions

View File

@@ -4,6 +4,9 @@ kind: ServiceMonitor
metadata:
labels:
{{- include "actions-runner-controller.labels" . | nindent 4 }}
{{- with .Values.metrics.serviceMonitorLabels }}
{{- toYaml . | nindent 4 }}
{{- end }}
name: {{ include "actions-runner-controller.serviceMonitorName" . }}
spec:
endpoints: