File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -29,17 +29,17 @@ spec:
29
29
apiVersion : monitoring.coreos.com/v1
30
30
kind : ServiceMonitor
31
31
metadata :
32
- name : {{ include "redfish_exporter.fullname" $ }}-{{ $host }}
32
+ name : {{ include "redfish_exporter.fullname" $ }}-{{ regexReplaceAll ":" $host "-" | trimAll "[]" }}
33
33
labels :
34
34
{{- include "redfish_exporter.labels" $ | nindent 4 }}
35
- redfish-exporter/host : {{ $host }}
35
+ redfish-exporter/host : {{ regexReplaceAll ":" $host "_" | trimAll "[]" }}
36
36
spec :
37
37
endpoints :
38
38
- port : http
39
39
interval : {{ $.Values.serviceMonitor.interval }}
40
40
params :
41
41
target :
42
- - {{ $host }}
42
+ - " {{ $host }}"
43
43
{{- if $hostConfig.group }}
44
44
group :
45
45
- {{ $hostConfig.group }}
48
48
path : /redfish
49
49
metricRelabelings :
50
50
- targetLabel : instance
51
- replacement : {{ $host }}
51
+ replacement : {{ trimAll "[]" $host }}
52
52
# (optional) when using group config add this to have group=my_group_name
53
53
{{- if $hostConfig.group }}
54
54
- targetLabel : instance_group
You can’t perform that action at this time.
0 commit comments