feat(matrix-sliding-sync): add opentelemetry suppor

This commit is contained in:
WrenIX 2024-07-23 16:47:05 +02:00
parent 514f95ee35
commit 00f54c07ed
Signed by: wrenix
GPG key ID: 7AFDB012974B1BB5
4 changed files with 32 additions and 2 deletions

View file

@ -4,7 +4,7 @@ name: matrix-sliding-sync
description: Proxy implementation of MSC3575's sync protocol.
icon: https://matrix.org/images/matrix-logo.svg
type: application
version: 0.1.3
version: 0.2.0
# renovate: image=ghcr.io/matrix-org/sliding-sync
appVersion: "0.99.19"
maintainers:

View file

@ -2,7 +2,7 @@
= matrix-sliding-sync
image::https://img.shields.io/badge/Version-0.1.3-informational?style=flat-square[Version: 0.1.3]
image::https://img.shields.io/badge/Version-0.2.0-informational?style=flat-square[Version: 0.2.0]
image::https://img.shields.io/badge/Version-application-informational?style=flat-square[Type: application]
image::https://img.shields.io/badge/AppVersion-0.99.19-informational?style=flat-square[AppVersion: 0.99.19]
== Maintainers
@ -87,6 +87,21 @@ helm uninstall matrix-sliding-sync-release
| `9100`
|
| config.opentelemetry.password
| string
| `nil`
|
| config.opentelemetry.url
| string
| `nil`
|
| config.opentelemetry.username
| string
| `nil`
|
| config.postgresql.database
| string
| `"sliding_sync"`

View file

@ -27,5 +27,16 @@ data:
{{- with .Values.config.metrics }}
SYNCV3_PROM: {{ printf ":%v" . | b64enc }}
{{- end }}
{{- with .Values.config.opentelemetry }}
{{- with .url }}
SYNCV3_OTLP_URL: {{ . | b64enc }}
{{- end }}
{{- with .username }}
SYNCV3_OTLP_USERNAME: {{ . | b64enc }}
{{- end }}
{{- with .password }}
SYNCV3_OTLP_PASSWORD: {{ . | b64enc }}
{{- end }}
{{- end }}
SYNCV3_LOG_LEVEL: {{ .Values.config.logLevel | b64enc }}
SYNCV3_MAX_DB_CONN: {{ toString .Values.config.postgresql.maxConn | b64enc }}

View file

@ -27,6 +27,10 @@ config:
sslmode: disable
maxConn: 0
metrics: 9100
opentelemetry:
url:
username:
password:
logLevel: INFO
imagePullSecrets: []