Improve ArgoCD support (#2041)

* Improve ArgoCD support

Signed-off-by: Fran Sanjuán <francesc.sanjuan@marfeel.com>

* Add modified yamls

Signed-off-by: Fran Sanjuán <francesc.sanjuan@marfeel.com>

---------

Signed-off-by: Fran Sanjuán <francesc.sanjuan@marfeel.com>
This commit is contained in:
Fran
2023-03-20 10:21:46 +01:00
committed by GitHub
parent aac1dcf547
commit ec56f4559f
2 changed files with 9 additions and 3 deletions

View File

@@ -105,6 +105,7 @@ function(params) {
bearerTokenFile: '/var/run/secrets/kubernetes.io/serviceaccount/token',
metricRelabelings: relabelings,
relabelings: [{
action: 'replace',
sourceLabels: ['__metrics_path__'],
targetLabel: 'metrics_path',
}],
@@ -121,6 +122,7 @@ function(params) {
},
bearerTokenFile: '/var/run/secrets/kubernetes.io/serviceaccount/token',
relabelings: [{
action: 'replace',
sourceLabels: ['__metrics_path__'],
targetLabel: 'metrics_path',
}],
@@ -166,6 +168,7 @@ function(params) {
tlsConfig: { insecureSkipVerify: true },
bearerTokenFile: '/var/run/secrets/kubernetes.io/serviceaccount/token',
relabelings: [{
action: 'replace',
sourceLabels: ['__metrics_path__'],
targetLabel: 'metrics_path',
}],

View File

@@ -46,7 +46,8 @@ spec:
- __name__
port: https-metrics
relabelings:
- sourceLabels:
- action: replace
sourceLabels:
- __metrics_path__
targetLabel: metrics_path
scheme: https
@@ -75,7 +76,8 @@ spec:
path: /metrics/cadvisor
port: https-metrics
relabelings:
- sourceLabels:
- action: replace
sourceLabels:
- __metrics_path__
targetLabel: metrics_path
scheme: https
@@ -87,7 +89,8 @@ spec:
path: /metrics/probes
port: https-metrics
relabelings:
- sourceLabels:
- action: replace
sourceLabels:
- __metrics_path__
targetLabel: metrics_path
scheme: https