Merge pull request #1364 from element-hq/bbz/synapse-pod-indexes-in-metrics

Synapse: add index label to metrics based on the Pod the suffix
This commit is contained in:
Ben Banfield-Zanin authored and GitHub committed 2026-06-01 10:17:48 +01:00
commit dc6aa7bd07
2 files changed
+6 -1

No files matched your search

@@ -1,6 +1,6 @@
{{- /*
Copyright 2024 New Vector Ltd
Copyright 2025 Element Creations Ltd
Copyright 2025-2026 Element Creations Ltd
SPDX-License-Identifier: AGPL-3.0-only
*/ -}}
@@ -24,6 +24,10 @@ spec:
- targetLabel: instance
action: replace
replacement: {{ tpl .ingress.host $ }}
- sourceLabels: [__meta_kubernetes_pod_name]
targetLabel: index
regex: '.*-([0-9]+)'
replacement: '$1'
selector:
matchLabels:
app.kubernetes.io/part-of: matrix-stack
+1
View File
@@ -0,0 +1 @@
Synapse: add `index` label to metrics.