mirror of
https://github.com/prometheus-operator/kube-prometheus.git
synced 2025-08-26 08:51:33 +02:00
Fixed labels in windows addon
This commit is contained in:
parent
9d69c4c318
commit
8c712eaa36
@ -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',
|
||||||
},
|
},
|
||||||
],
|
],
|
||||||
},
|
},
|
||||||
|
Loading…
x
Reference in New Issue
Block a user