fix(mycloud-matrix): add tracing
This commit is contained in:
parent
23e1eaf6da
commit
75c774d559
4 changed files with 39 additions and 1 deletions
|
@ -2,7 +2,7 @@ commons:
|
||||||
tracing:
|
tracing:
|
||||||
enabled: true
|
enabled: true
|
||||||
http:
|
http:
|
||||||
endpoint: "http://tempo.monitoring.svc:4318/v1/traces"
|
endpoint: "http://tempo.monitoring.svc:4318"
|
||||||
grpc:
|
grpc:
|
||||||
enabled: true
|
enabled: true
|
||||||
insecure: true
|
insecure: true
|
||||||
|
|
|
@ -85,6 +85,19 @@ spec:
|
||||||
{{- else }}
|
{{- else }}
|
||||||
transport: "blackhole"
|
transport: "blackhole"
|
||||||
{{- end }}{{/* end-if $mailHostname */}}
|
{{- end }}{{/* end-if $mailHostname */}}
|
||||||
|
{{- with .Values.commons.tracing }}
|
||||||
|
{{- if .enabled }}
|
||||||
|
telemetry:
|
||||||
|
tracing:
|
||||||
|
exporter: otlp
|
||||||
|
endpoint: {{ .http.endpoint }}
|
||||||
|
propagators:
|
||||||
|
- tracecontext
|
||||||
|
- baggage
|
||||||
|
- jaeger
|
||||||
|
{{- end }}
|
||||||
|
{{- end }}
|
||||||
|
|
||||||
policy:
|
policy:
|
||||||
data:
|
data:
|
||||||
admin_users:
|
admin_users:
|
||||||
|
|
|
@ -32,6 +32,12 @@ spec:
|
||||||
password: {{ .password | default (derivePassword 1 "long" $.Values.commons.masterPassword "matrix-sliding-sync" "database_password" | b64enc) | quote }}
|
password: {{ .password | default (derivePassword 1 "long" $.Values.commons.masterPassword "matrix-sliding-sync" "database_password" | b64enc) | quote }}
|
||||||
database: {{ .name | quote }}
|
database: {{ .name | quote }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
|
{{- with .Values.commons.tracing }}
|
||||||
|
{{- if .enabled }}
|
||||||
|
opentelemetry:
|
||||||
|
url: {{ .http.endpoint }}
|
||||||
|
{{- end }}
|
||||||
|
{{- end }}
|
||||||
|
|
||||||
ingress:
|
ingress:
|
||||||
enabled: true
|
enabled: true
|
||||||
|
|
|
@ -106,6 +106,25 @@ commons:
|
||||||
# @section -- Commons Monitoring
|
# @section -- Commons Monitoring
|
||||||
annotations:
|
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:
|
server:
|
||||||
# -- default: (commons.ingress.domain)
|
# -- default: (commons.ingress.domain)
|
||||||
host:
|
host:
|
||||||
|
|
Loading…
Add table
Reference in a new issue