From 8c712eaa36656b76b06de13ce94afa543f3551e8 Mon Sep 17 00:00:00 2001 From: Luis Vidal Ernst <l.vidalernst@traveltrex.com> Date: Tue, 27 Apr 2021 12:47:23 +0200 Subject: [PATCH] Fixed labels in windows addon --- jsonnet/kube-prometheus/addons/windows.libsonnet | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/jsonnet/kube-prometheus/addons/windows.libsonnet b/jsonnet/kube-prometheus/addons/windows.libsonnet index cbf9071a..89920322 100644 --- a/jsonnet/kube-prometheus/addons/windows.libsonnet +++ b/jsonnet/kube-prometheus/addons/windows.libsonnet @@ -3,6 +3,7 @@ local windowsrules = import 'kubernetes-mixin/rules/windows.libsonnet'; { values+:: { + // This needs to follow prometheus naming convention and not prometheus-operator one windowsScrapeConfig+:: { job_name: 'windows-exporter', static_configs: [ @@ -15,10 +16,10 @@ local windowsrules = import 'kubernetes-mixin/rules/windows.libsonnet'; action: 'replace', regex: '(.*)', replacement: '$1', - sourceLabels: [ + source_labels: [ '__meta_kubernetes_endpoint_address_target_name', ], - targetLabel: 'instance', + target_label: 'instance', }, ], }, -- GitLab