Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
S
system-charts
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Rancher商店
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
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
30 additions
and
0 deletions
+30
-0
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:
action
:
replace
regex
:
(.+)
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
scheme
:
https
path
:
/metrics/resource/v1alpha1
...
...
@@ -128,6 +143,21 @@ spec:
action
:
replace
regex
:
(.+)
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
path
:
/metrics/resource/v1alpha1
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