Skip to content

Commit 0725679

Browse files
committed
add envoy admin port and metrics
1 parent 4229477 commit 0725679

4 files changed

Lines changed: 15 additions & 1 deletion

File tree

charts/synapse/Chart.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
---
22
name: synapse
3-
version: 0.1.1
3+
version: 0.1.2

charts/synapse/templates/envoy-deployment.yaml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,11 @@ spec:
1919
labels:
2020
{{- include "synapse-client-reader-envoy.selectorLabels" . | nindent 8 }}
2121
annotations:
22+
{{- if .Values.envoyProxy.metrics }}
23+
prometheus.io/port: "9901"
24+
prometheus.io/scrape: "true"
25+
prometheus.io/path: "/stats/prometheus"
26+
{{- end }}
2227
checksum/config: {{ .Files.Get "scripts/envoy.yaml" | sha256sum }}
2328
{{- with .Values.envoyProxy.podAnnotations }}
2429
{{- toYaml . | nindent 8 }}

charts/synapse/templates/envoy-service.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,5 +12,9 @@ spec:
1212
targetPort: http
1313
protocol: TCP
1414
name: http
15+
- port: {{ .Values.envoyProxy.admin.port }}
16+
targetPort: http-admin
17+
protocol: TCP
18+
name: http-admin
1519
selector:
1620
{{- include "synapse-client-reader-envoy.selectorLabels" . | nindent 4 }}

charts/synapse/values.yaml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -202,6 +202,8 @@ ingress:
202202
- "/_matrix/client/(r0|v3|unstable)/notifications$"
203203
# User directory search requests
204204
- "/_matrix/client/(api/v1|r0|v3|unstable)/user_directory/search$"
205+
# TODO: check search url
206+
# "/_matrix/client/(r0|v3|unstable)/user_directory/search$"
205207

206208
admin:
207209
serverName: NOT-CONFIGURED
@@ -251,6 +253,9 @@ slidingSyncProxy:
251253

252254
envoyProxy:
253255
enabled: true
256+
admin:
257+
port: 9901
258+
metrics: true
254259
service:
255260
type: ClusterIP
256261
port: 80

0 commit comments

Comments
 (0)