fix(mycloud-matrix): add tracing

This commit is contained in:
WrenIX 2024-07-23 16:53:54 +02:00
parent 23e1eaf6da
commit 75c774d559
Signed by: wrenix
GPG key ID: 7AFDB012974B1BB5
4 changed files with 39 additions and 1 deletions

View file

@ -2,7 +2,7 @@ commons:
tracing:
enabled: true
http:
endpoint: "http://tempo.monitoring.svc:4318/v1/traces"
endpoint: "http://tempo.monitoring.svc:4318"
grpc:
enabled: true
insecure: true

View file

@ -85,6 +85,19 @@ spec:
{{- else }}
transport: "blackhole"
{{- end }}{{/* end-if $mailHostname */}}
{{- with .Values.commons.tracing }}
{{- if .enabled }}
telemetry:
tracing:
exporter: otlp
endpoint: {{ .http.endpoint }}
propagators:
- tracecontext
- baggage
- jaeger
{{- end }}
{{- end }}
policy:
data:
admin_users:

View file

@ -32,6 +32,12 @@ spec:
password: {{ .password | default (derivePassword 1 "long" $.Values.commons.masterPassword "matrix-sliding-sync" "database_password" | b64enc) | quote }}
database: {{ .name | quote }}
{{- end }}
{{- with .Values.commons.tracing }}
{{- if .enabled }}
opentelemetry:
url: {{ .http.endpoint }}
{{- end }}
{{- end }}
ingress:
enabled: true

View file

@ -106,6 +106,25 @@ commons:
# @section -- Commons Monitoring
annotations:
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"
server:
# -- default: (commons.ingress.domain)
host: