fix(infra-ingress): add tracing

This commit is contained in:
WrenIX 2024-07-19 16:34:55 +02:00
parent 64051152d3
commit f680b14372
Signed by: wrenix
GPG key ID: 7AFDB012974B1BB5
3 changed files with 42 additions and 0 deletions

View file

@ -0,0 +1,9 @@
commons:
tracing:
enabled: true
http:
endpoint: "http://tempo.monitoring.svc:4318/v1/traces"
grpc:
enabled: true
insecure: true
endpoint: "tempo.monitoring.svc:4317"

View file

@ -120,4 +120,19 @@ spec:
additionalLabels: additionalLabels:
{{- toYaml $.Values.commons.prometheus.monitor.labels | nindent 12 }} {{- toYaml $.Values.commons.prometheus.monitor.labels | nindent 12 }}
{{- end }} {{- end }}
{{- if .Values.commons.tracing.enabled }}
tracing:
otlp:
enabled: true
{{- if .Values.commons.tracing.grpc.enabled }}
grpc:
enabled: true
insecure: {{ .Values.commons.tracing.grpc.insecure }}
endpoint: {{ .Values.commons.tracing.grpc.endpoint }}
{{- else }}
http:
enabled: true
endpoint: {{ .Values.commons.tracing.http.endpoint }}
{{- end }}
{{- end }}
{{- end }} {{- end }}

View file

@ -28,6 +28,24 @@ commons:
# -- labels on Pod- and Service-Monitor # -- labels on Pod- and Service-Monitor
# @section -- Commons Monitoring # @section -- Commons Monitoring
labels: {} labels: {}
tracing:
# -- enable tracing on all components
# @section -- Commons Tracing
enabled: false
http:
# -- http endpoint
# @section -- Commons Tracing
endpoint: "http://tempo.monitoring.svc:4318/v1/traces"
grpc:
# -- prefer grpc over http
# @section -- Commons Tracing
enabled: true
# -- allow insecure connection per grpc
# @section -- Commons Tracing
insecure: true
# -- grpc endpoint
# @section -- Commons Tracing
endpoint: "tempo.monitoring.svc:4317"
controller: "traefik" controller: "traefik"
hostNetwork: true hostNetwork: true