Skip to content

Commit 2ba29a9

Browse files
authored
metricRelabelings (#90)
* Added metricRelabelings - Signed-off-by: Marco Draijer <marco.draijer@logius.nl> Signed-off-by: Marco Draijer <marcodraijer@MacBook-Pro-van-informatievoorzieningen-5.local> * Added metricRelabelings - Signed-off-by: Marco Draijer <marco.draijer@logius.nl> Signed-off-by: Marco Draijer <marcodraijer@MacBook-Pro-van-informatievoorzieningen-5.local> * Update Chart.yaml to 0.5.19 - Signed-off-by: Marco Draijer <marco.draijer@logius.nl> Signed-off-by: Marco Draijer <marcodraijer@MacBook-Pro-van-informatievoorzieningen-5.local> --------- Signed-off-by: Marco Draijer <marcodraijer@MacBook-Pro-van-informatievoorzieningen-5.local>
1 parent f07fd52 commit 2ba29a9

File tree

3 files changed

+17
-1
lines changed

3 files changed

+17
-1
lines changed

chart/kepler/Chart.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,5 +22,5 @@ annotations:
2222
url: https://keybase.io/bradmccoydev/pgp_keys.asc
2323
2424
type: application
25-
version: 0.5.18
25+
version: 0.5.19
2626
appVersion: release-0.8.0

chart/kepler/templates/servicemonitor.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,10 @@ spec:
3030
relabelings:
3131
{{- toYaml . | nindent 8 }}
3232
{{- end }}
33+
{{- with .Values.serviceMonitor.metricRelabelings }}
34+
metricRelabelings:
35+
{{- toYaml . | nindent 8 }}
36+
{{- end }}
3337
namespaceSelector:
3438
matchNames:
3539
- {{ .Release.Namespace }}

chart/kepler/values.yaml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -101,6 +101,18 @@ serviceMonitor:
101101
sourceLabels:
102102
- __meta_kubernetes_pod_node_name
103103
targetLabel: instance
104+
metricRelabelings: []
105+
## For example when you need the name of the pod's namespace in the 'namespace' label, e.g. for a multitenant setup
106+
# - action: replace
107+
# regex: (.*)
108+
# sourceLabels:
109+
# - namespace
110+
# targetLabel: app_namespace
111+
# - action: replace
112+
# regex: (.*)
113+
# sourceLabels:
114+
# - container_namespace
115+
# targetLabel: namespace
104116

105117
redfish:
106118
enabled: false

0 commit comments

Comments
 (0)