From 014d255fb4aed8b6ddc5f869b118a1784a7feb3f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Constan=C3=A7a=20Manteigas?= <113898685+constanca-m@users.noreply.github.com> Date: Thu, 8 Feb 2024 11:09:53 +0100 Subject: [PATCH] Update metricbeat/module/kubernetes/util/kubernetes.go Co-authored-by: Michael Katsoulis --- metricbeat/module/kubernetes/util/kubernetes.go | 1 + 1 file changed, 1 insertion(+) diff --git a/metricbeat/module/kubernetes/util/kubernetes.go b/metricbeat/module/kubernetes/util/kubernetes.go index 229f8fc39d2..e40f7523091 100644 --- a/metricbeat/module/kubernetes/util/kubernetes.go +++ b/metricbeat/module/kubernetes/util/kubernetes.go @@ -590,6 +590,7 @@ func NewResourceMetadataEnricher( return []string{id} } + // indexFunc retrieves the resource id from a given event indexFunc := func(e mapstr.M) string { name := getString(e, "name") namespace := getString(e, mb.ModuleDataKey+".namespace")