Skip to content

Commit

Permalink
Fix excludeNamespace for ebpf profiles
Browse files Browse the repository at this point in the history
Signed-off-by: Pete Wall <pete.wall@grafana.com>
  • Loading branch information
petewall committed Dec 12, 2024
1 parent 68a348d commit d900799
Show file tree
Hide file tree
Showing 11 changed files with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions charts/feature-profiling/templates/_ebpf.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -21,17 +21,17 @@ discovery.relabel "ebpf_pods" {
regex = "Succeeded|Failed|Completed"
action = "drop"
}
rule {
source_labels = ["__meta_kubernetes_namespace"]
target_label = "namespace"
}
{{- if .Values.ebpf.excludeNamespaces }}
rule {
source_labels = ["namespace"]
regex = "{{ .Values.ebpf.excludeNamespaces | join "|" }}"
action = "drop"
}
{{- end }}
rule {
source_labels = ["__meta_kubernetes_namespace"]
target_label = "namespace"
}
rule {
source_labels = ["__meta_kubernetes_pod_name"]
target_label = "pod"
Expand Down
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.

0 comments on commit d900799

Please sign in to comment.