Skip to content
Snippets Groups Projects
Commit 8c712eaa authored by Luis Vidal Ernst's avatar Luis Vidal Ernst
Browse files

Fixed labels in windows addon

parent 9d69c4c3
Branches
Tags
No related merge requests found
...@@ -3,6 +3,7 @@ local windowsrules = import 'kubernetes-mixin/rules/windows.libsonnet'; ...@@ -3,6 +3,7 @@ local windowsrules = import 'kubernetes-mixin/rules/windows.libsonnet';
{ {
values+:: { values+:: {
// This needs to follow prometheus naming convention and not prometheus-operator one
windowsScrapeConfig+:: { windowsScrapeConfig+:: {
job_name: 'windows-exporter', job_name: 'windows-exporter',
static_configs: [ static_configs: [
...@@ -15,10 +16,10 @@ local windowsrules = import 'kubernetes-mixin/rules/windows.libsonnet'; ...@@ -15,10 +16,10 @@ local windowsrules = import 'kubernetes-mixin/rules/windows.libsonnet';
action: 'replace', action: 'replace',
regex: '(.*)', regex: '(.*)',
replacement: '$1', replacement: '$1',
sourceLabels: [ source_labels: [
'__meta_kubernetes_endpoint_address_target_name', '__meta_kubernetes_endpoint_address_target_name',
], ],
targetLabel: 'instance', target_label: 'instance',
}, },
], ],
}, },
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment