feat(argo-workflows): add Prometheus ServiceMonitor relabelings, metricRelabelings & targetLabels
Signed-off-by: Stefan Tertan <stefan.tertan@fundingcircle.com>
This commit is contained in:
parent
aef554340f
commit
5b0bb03a89
2 changed files with 29 additions and 0 deletions
|
@ -15,11 +15,31 @@ spec:
|
||||||
- port: metrics
|
- port: metrics
|
||||||
path: {{ .Values.controller.metricsConfig.path }}
|
path: {{ .Values.controller.metricsConfig.path }}
|
||||||
interval: 30s
|
interval: 30s
|
||||||
|
{{- with .Values.controller.metricsConfig.relabelings }}
|
||||||
|
relabelings:
|
||||||
|
{{- toYaml . | nindent 8 }}
|
||||||
|
{{- end }}
|
||||||
|
{{- with .Values.controller.metricsConfig.metricRelabelings }}
|
||||||
|
metricRelabelings:
|
||||||
|
{{- toYaml . | nindent 8 }}
|
||||||
|
{{- end }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
{{- if .Values.controller.telemetryConfig.enabled }}
|
{{- if .Values.controller.telemetryConfig.enabled }}
|
||||||
- port: telemetry
|
- port: telemetry
|
||||||
path: {{ .Values.controller.telemetryConfig.path }}
|
path: {{ .Values.controller.telemetryConfig.path }}
|
||||||
interval: 30s
|
interval: 30s
|
||||||
|
{{- with .Values.controller.metricsConfig.relabelings }}
|
||||||
|
relabelings:
|
||||||
|
{{- toYaml . | nindent 8 }}
|
||||||
|
{{- end }}
|
||||||
|
{{- with .Values.controller.metricsConfig.metricRelabelings }}
|
||||||
|
metricRelabelings:
|
||||||
|
{{- toYaml . | nindent 8 }}
|
||||||
|
{{- end }}
|
||||||
|
{{- end }}
|
||||||
|
{{- with .Values.controller.metricsConfig.targetLabels }}
|
||||||
|
targetLabels:
|
||||||
|
{{- toYaml . | nindent 8 }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
namespaceSelector:
|
namespaceSelector:
|
||||||
matchNames:
|
matchNames:
|
||||||
|
|
|
@ -111,6 +111,15 @@ controller:
|
||||||
servicePort: 8080
|
servicePort: 8080
|
||||||
# -- Service metrics port name
|
# -- Service metrics port name
|
||||||
servicePortName: metrics
|
servicePortName: metrics
|
||||||
|
# -- ServiceMonitor relabel configs to apply to samples before scraping
|
||||||
|
# https://github.com/prometheus-operator/prometheus-operator/blob/master/Documentation/api.md#relabelconfig
|
||||||
|
relabelings: []
|
||||||
|
# -- ServiceMonitor metric relabel configs to apply to samples before ingestion
|
||||||
|
# https://github.com/prometheus-operator/prometheus-operator/blob/main/Documentation/api.md#endpoint
|
||||||
|
metricRelabelings: []
|
||||||
|
# --ServiceMonitor will add labels from the service to the Prometheus metric
|
||||||
|
# https://github.com/prometheus-operator/prometheus-operator/blob/main/Documentation/api.md#servicemonitorspec
|
||||||
|
targetLabels: []
|
||||||
# -- the controller container's securityContext
|
# -- the controller container's securityContext
|
||||||
securityContext:
|
securityContext:
|
||||||
readOnlyRootFilesystem: true
|
readOnlyRootFilesystem: true
|
||||||
|
|
Loading…
Reference in a new issue