Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
Joe Mayer
system-charts
Commits
0029342e
Commit
0029342e
authored
Nov 07, 2019
by
Frank Mai
Committed by
Alena Prokharchyk
Nov 11, 2019
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Compatible with v1.16 deprecated labels
parent
43eafbf9
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
30 additions
and
0 deletions
+30
-0
charts/rancher-monitoring/v0.0.6/charts/exporter-kubelets/templates/servicemonitor.yaml
....6/charts/exporter-kubelets/templates/servicemonitor.yaml
+30
-0
No files found.
charts/rancher-monitoring/v0.0.6/charts/exporter-kubelets/templates/servicemonitor.yaml
View file @
0029342e
...
@@ -71,6 +71,21 @@ spec:
...
@@ -71,6 +71,21 @@ spec:
action
:
replace
action
:
replace
regex
:
(.+)
regex
:
(.+)
replacement
:
$1
replacement
:
$1
{{
- if semverCompare ">=1.16-0" .Capabilities.KubeVersion.GitVersion
}}
metricRelabelings
:
-
action
:
replace
regex
:
(.+)
replacement
:
$1
sourceLabels
:
-
container
targetLabel
:
container_name
-
action
:
replace
regex
:
(.+)
replacement
:
$1
sourceLabels
:
-
pod
targetLabel
:
pod_name
{{
- end
}}
-
port
:
https-metrics
-
port
:
https-metrics
scheme
:
https
scheme
:
https
path
:
/metrics/resource/v1alpha1
path
:
/metrics/resource/v1alpha1
...
@@ -128,6 +143,21 @@ spec:
...
@@ -128,6 +143,21 @@ spec:
action
:
replace
action
:
replace
regex
:
(.+)
regex
:
(.+)
replacement
:
$1
replacement
:
$1
{{
- if semverCompare ">=1.16-0" .Capabilities.KubeVersion.GitVersion
}}
metricRelabelings
:
-
action
:
replace
regex
:
(.+)
replacement
:
$1
sourceLabels
:
-
container
targetLabel
:
container_name
-
action
:
replace
regex
:
(.+)
replacement
:
$1
sourceLabels
:
-
pod
targetLabel
:
pod_name
{{
- end
}}
-
port
:
http-metrics
-
port
:
http-metrics
path
:
/metrics/resource/v1alpha1
path
:
/metrics/resource/v1alpha1
honorLabels
:
true
honorLabels
:
true
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment