2023-11-15 14:39:02 +00:00
|
|
|
{{- define "telemetry-values" }}
|
|
|
|
|
2024-05-23 21:22:22 +00:00
|
|
|
{{- if index .Values "telemetry" "fluent-bit" }}
|
|
|
|
fluent-bit:
|
|
|
|
{{- with index .Values.telemetry "fluent-bit" }}
|
|
|
|
{{- toYaml . | nindent 2 }}
|
|
|
|
{{- end }}
|
|
|
|
|
|
|
|
serviceMonitor:
|
|
|
|
enabled: {{ .Values.metrics.enabled }}
|
|
|
|
{{- end }}
|
|
|
|
|
|
|
|
{{- if .Values.telemetry.fluentd }}
|
|
|
|
fluentd:
|
|
|
|
{{- with .Values.telemetry.fluentd }}
|
|
|
|
{{- toYaml . | nindent 2 }}
|
|
|
|
{{- end }}
|
|
|
|
|
|
|
|
metrics:
|
|
|
|
serviceMonitor:
|
|
|
|
enabled: {{ .Values.metrics.enabled }}
|
|
|
|
{{- end }}
|
|
|
|
|
2023-11-15 14:39:02 +00:00
|
|
|
{{- if .Values.telemetry.jaeger }}
|
|
|
|
jaeger:
|
|
|
|
{{- with .Values.telemetry.jaeger }}
|
|
|
|
{{- toYaml . | nindent 2 }}
|
|
|
|
{{- end }}
|
2024-02-09 16:24:37 +00:00
|
|
|
|
|
|
|
collector:
|
|
|
|
serviceMonitor:
|
|
|
|
enabled: {{ .Values.metrics.enabled }}
|
|
|
|
query:
|
|
|
|
serviceMonitor:
|
|
|
|
enabled: {{ .Values.metrics.enabled }}
|
2023-11-15 14:39:02 +00:00
|
|
|
{{- end }}
|
|
|
|
|
|
|
|
{{- if .Values.telemetry.opensearch }}
|
|
|
|
opensearch:
|
|
|
|
{{- if .Values.telemetry.opensearch.nodeSets }}
|
|
|
|
nodeSets:
|
2024-02-09 16:24:37 +00:00
|
|
|
{{- with .Values.telemetry.opensearch.nodeSets }}
|
|
|
|
{{- toYaml . | nindent 4 }}
|
|
|
|
{{- end }}
|
2023-11-15 14:39:02 +00:00
|
|
|
{{- end }}
|
|
|
|
|
2024-02-09 16:24:37 +00:00
|
|
|
{{- if .Values.telemetry.opensearch.dashboard }}
|
|
|
|
dashboard:
|
|
|
|
{{- with .Values.telemetry.opensearch.dashboard }}
|
2023-11-15 14:39:02 +00:00
|
|
|
{{- toYaml . | nindent 4 }}
|
|
|
|
{{- end }}
|
|
|
|
{{- end }}
|
|
|
|
|
2024-04-15 13:25:01 +00:00
|
|
|
{{- with .Values.telemetry.opensearch.settings }}
|
|
|
|
settings:
|
|
|
|
{{- toYaml . | nindent 4 }}
|
|
|
|
{{- end }}
|
|
|
|
|
2024-02-09 16:24:37 +00:00
|
|
|
prometheus: {{ .Values.metrics.enabled }}
|
|
|
|
|
2023-11-15 14:39:02 +00:00
|
|
|
{{- end }}
|
|
|
|
|
|
|
|
{{- end }}
|
|
|
|
|
|
|
|
|
|
|
|
{{- define "telemetry-argo" }}
|
|
|
|
|
|
|
|
{{- end }}
|
|
|
|
|
|
|
|
{{ include "kubezero-app.app" . }}
|