diff --git a/templates/scheduler/servicemonitor.yaml b/templates/scheduler/servicemonitor.yaml index 21bea1d98860e00a8e9bbf436dd9f9a63520419e..954c154ba01cd438facee01c38e617d758c2367d 100644 --- a/templates/scheduler/servicemonitor.yaml +++ b/templates/scheduler/servicemonitor.yaml @@ -13,6 +13,9 @@ spec: sourceLabels: - __meta_kubernetes_pod_node_name targetLabel: instance + {{- if and .Values.metrics.kubeScheduler .Values.metrics.kubeScheduler.serviceMonitor.relabelings }} + {{- .Values.metrics.kubeScheduler.serviceMonitor.relabelings | toYaml | nindent 4}} + {{- end }} jobLabel: jobLabel namespaceSelector: matchNames: