diff --git a/.internal-ci/helm/fog-ledger/templates/fog-ledger-router-servicemonitor.yaml b/.internal-ci/helm/fog-ledger/templates/fog-ledger-router-servicemonitor.yaml index 0a271eba85..6851a79773 100644 --- a/.internal-ci/helm/fog-ledger/templates/fog-ledger-router-servicemonitor.yaml +++ b/.internal-ci/helm/fog-ledger/templates/fog-ledger-router-servicemonitor.yaml @@ -23,5 +23,9 @@ spec: replacement: {{ $network }} - targetLabel: partner replacement: {{ $partner }} + - action: replace + sourceLabels: + - __meta_kubernetes_pod_label_stack + targetLabel: ledger_stack --- {{- end }} diff --git a/.internal-ci/helm/fog-ledger/templates/fog-ledger-store-servicemonitor.yaml b/.internal-ci/helm/fog-ledger/templates/fog-ledger-store-servicemonitor.yaml index 3337fb38bf..cc286d50ca 100644 --- a/.internal-ci/helm/fog-ledger/templates/fog-ledger-store-servicemonitor.yaml +++ b/.internal-ci/helm/fog-ledger/templates/fog-ledger-store-servicemonitor.yaml @@ -21,4 +21,8 @@ spec: replacement: {{ $network }} - targetLabel: partner replacement: {{ $partner }} + - action: replace + sourceLabels: + - __meta_kubernetes_pod_label_stack + targetLabel: ledger_stack diff --git a/.internal-ci/helm/fog-view/templates/fog-view-router-servicemonitor.yaml b/.internal-ci/helm/fog-view/templates/fog-view-router-servicemonitor.yaml index 0f44fb4da7..2a0cdd8ff1 100644 --- a/.internal-ci/helm/fog-view/templates/fog-view-router-servicemonitor.yaml +++ b/.internal-ci/helm/fog-view/templates/fog-view-router-servicemonitor.yaml @@ -23,5 +23,9 @@ spec: replacement: {{ $network }} - targetLabel: partner replacement: {{ $partner }} + - action: replace + sourceLabels: + - __meta_kubernetes_pod_label_stack + targetLabel: view_stack --- {{- end }} diff --git a/.internal-ci/helm/fog-view/templates/fog-view-store-servicemonitor.yaml b/.internal-ci/helm/fog-view/templates/fog-view-store-servicemonitor.yaml index 783b14186e..88d8177fd9 100644 --- a/.internal-ci/helm/fog-view/templates/fog-view-store-servicemonitor.yaml +++ b/.internal-ci/helm/fog-view/templates/fog-view-store-servicemonitor.yaml @@ -21,4 +21,8 @@ spec: replacement: {{ $network }} - targetLabel: partner replacement: {{ $partner }} + - action: replace + sourceLabels: + - __meta_kubernetes_pod_label_stack + targetLabel: view_stack