diff --git a/install/kubernetes/tetragon/templates/servicemonitor.yaml b/install/kubernetes/tetragon/templates/servicemonitor.yaml index b56888519ce..b1bf3b45599 100644 --- a/install/kubernetes/tetragon/templates/servicemonitor.yaml +++ b/install/kubernetes/tetragon/templates/servicemonitor.yaml @@ -22,6 +22,10 @@ spec: sourceLabels: - __meta_kubernetes_pod_node_name targetLabel: node + - replacement: ${1} + sourceLabels: + - __meta_kubernetes_pod_name + targetLabel: tetragon_pod namespaceSelector: matchNames: - {{ .Release.Namespace }}