Skip to content

Commit

Permalink
update servicemonitor to add stack labels (#3782)
Browse files Browse the repository at this point in the history
  • Loading branch information
jgreat authored Dec 11, 2023
1 parent 5399394 commit b6c98c9
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -23,5 +23,9 @@ spec:
replacement: {{ $network }}
- targetLabel: partner
replacement: {{ $partner }}
- action: replace
sourceLabels:
- __meta_kubernetes_pod_label_stack
targetLabel: ledger_stack
---
{{- end }}
Original file line number Diff line number Diff line change
Expand Up @@ -21,4 +21,8 @@ spec:
replacement: {{ $network }}
- targetLabel: partner
replacement: {{ $partner }}
- action: replace
sourceLabels:
- __meta_kubernetes_pod_label_stack
targetLabel: ledger_stack

Original file line number Diff line number Diff line change
Expand Up @@ -23,5 +23,9 @@ spec:
replacement: {{ $network }}
- targetLabel: partner
replacement: {{ $partner }}
- action: replace
sourceLabels:
- __meta_kubernetes_pod_label_stack
targetLabel: view_stack
---
{{- end }}
Original file line number Diff line number Diff line change
Expand Up @@ -21,4 +21,8 @@ spec:
replacement: {{ $network }}
- targetLabel: partner
replacement: {{ $partner }}
- action: replace
sourceLabels:
- __meta_kubernetes_pod_label_stack
targetLabel: view_stack

0 comments on commit b6c98c9

Please sign in to comment.