mirror of
https://github.com/element-hq/ess-helm.git
synced 2026-11-29 05:13:01 -08:00
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:
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
|
||||
|
||||
@@ -0,0 +1 @@
|
||||
Synapse: add `index` label to metrics.
|
||||
Reference in new issue
Block a user