Merge pull request #1111 from Luis-TT/fix-windows-addon-label
This commit is contained in:
@@ -7,9 +7,9 @@ local kp =
|
|||||||
namespace: 'monitoring',
|
namespace: 'monitoring',
|
||||||
},
|
},
|
||||||
windowsScrapeConfig+:: {
|
windowsScrapeConfig+:: {
|
||||||
static_configs: {
|
static_configs: [{
|
||||||
targets: ['10.240.0.65:5000', '10.240.0.63:5000'],
|
targets: ['10.240.0.65:5000', '10.240.0.63:5000'],
|
||||||
},
|
}],
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
|
|||||||
@@ -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';
|
|||||||
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',
|
||||||
},
|
},
|
||||||
],
|
],
|
||||||
},
|
},
|
||||||
|
|||||||
Reference in New Issue
Block a user