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:
|
||||
enabled: true
|
||||
http:
|
||||
endpoint: "http://tempo.monitoring.svc:4318/v1/traces"
|
||||
endpoint: "http://tempo.monitoring.svc:4318"
|
||||
grpc:
|
||||
enabled: true
|
||||
insecure: true
|
||||
|
|
|
@ -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:
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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:
|
||||
|
|
Loading…
Add table
Reference in a new issue