File tree Expand file tree Collapse file tree 3 files changed +29
-1
lines changed Expand file tree Collapse file tree 3 files changed +29
-1
lines changed Original file line number Diff line number Diff line change 73
73
args :
74
74
- --port={{ int .Values.podListenPort }}
75
75
- --telemetry-port={{ int .Values.podTelemetryListenPort }}
76
+ {{- if .Values.serviceMonitor.selfMonitor }}
77
+ - --telemetry-host=0.0.0.0
78
+ {{- end }}
76
79
- --custom-resource-state-only
77
80
- --custom-resource-state-config-file=/etc/eckresourcestate/config.yaml
78
81
{{- if .Values.autoGoMemLimit.enabled }}
Original file line number Diff line number Diff line change 36
36
{{- if .Values.serviceMonitor.extraParameters }}
37
37
{{- toYaml .Values.serviceMonitor.extraParameters | nindent 4 }}
38
38
{{- end }}
39
+ {{- if .Values.serviceMonitor.selfMonitor }}
40
+ - port : telemetry
41
+ {{- if .Values.serviceMonitor.interval }}
42
+ interval : {{ .Values.serviceMonitor.interval }}
43
+ {{- end }}
44
+ {{- if .Values.serviceMonitor.scrapeTimeout }}
45
+ scrapeTimeout : {{ .Values.serviceMonitor.scrapeTimeout }}
46
+ {{- end }}
47
+ {{- if .Values.serviceMonitor.honorLabels }}
48
+ honorLabels : {{ .Values.serviceMonitor.honorLabels }}
49
+ {{- end }}
50
+ {{- if .Values.serviceMonitor.relabelings }}
51
+ relabelings :
52
+ {{- .Values.serviceMonitor.relabelings | toYaml | nindent 4 }}
53
+ {{- end }}
54
+ {{- if .Values.serviceMonitor.metricRelabelings }}
55
+ metricRelabelings :
56
+ {{- .Values.serviceMonitor.metricRelabelings | toYaml | nindent 4 }}
57
+ {{- end }}
58
+ {{- if .Values.serviceMonitor.extraParameters }}
59
+ {{- toYaml .Values.serviceMonitor.extraParameters | nindent 4 }}
60
+ {{- end }}
61
+ {{- end }}
39
62
namespaceSelector :
40
63
matchNames :
41
64
- {{ .Release.Namespace }}
Original file line number Diff line number Diff line change @@ -167,6 +167,8 @@ prometheusRules:
167
167
serviceMonitor :
168
168
# -- Should a ServiceMonitor object be installed to scrape this exporter. For prometheus-operator (kube-prometheus-stack) users.
169
169
create : true
170
+ # -- Also scrape internal metrics of kube-state-metrics on it's telemetry endpoint
171
+ selfMonitor : false
170
172
# -- Optional namespace in which to create the ServiceMonitor. Could be where prometheus-operator is running.
171
173
namespace : " "
172
174
# -- Optional name of the label on the target Service to use as the job name in Prometheus
@@ -292,7 +294,7 @@ securityContext:
292
294
readOnlyRootFilesystem : true
293
295
capabilities :
294
296
drop :
295
- - ALL
297
+ - ALL
296
298
297
299
# -- PriorityClassName for the kube-state-metrics Pod
298
300
priorityClassName : " "
You can’t perform that action at this time.
0 commit comments