Skip to content

Commit

Permalink
Update metricbeat/module/kubernetes/util/kubernetes.go
Browse files Browse the repository at this point in the history
Co-authored-by: Michael Katsoulis <[email protected]>
  • Loading branch information
constanca-m and MichaelKatsoulis authored Feb 8, 2024
1 parent 9170619 commit 014d255
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions metricbeat/module/kubernetes/util/kubernetes.go
Original file line number Diff line number Diff line change
Expand Up @@ -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")
Expand Down

0 comments on commit 014d255

Please sign in to comment.