-
Notifications
You must be signed in to change notification settings - Fork 4.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Index node.id in elasticsearch/node metricset #9209
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -75,7 +75,7 @@ func eventsMapping(r mb.ReporterV2, info elasticsearch.Info, content []byte) err | |
} | ||
|
||
var errs multierror.Errors | ||
for name, node := range nodesStruct.Nodes { | ||
for id, node := range nodesStruct.Nodes { | ||
event := mb.Event{} | ||
|
||
event.RootFields = common.MapStr{} | ||
|
@@ -93,8 +93,7 @@ func eventsMapping(r mb.ReporterV2, info elasticsearch.Info, content []byte) err | |
continue | ||
} | ||
|
||
// Write name here as full name only available as key | ||
event.MetricSetFields["name"] = name | ||
event.MetricSetFields["id"] = id | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Was this a "bug" before? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Yeah, it was. We were actually assigning the node ID to the There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. this is potentially a breaking change or a bug fix, so we should probably mention it in the changelog. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Good point. Added CHANGELOG entry in breaking changes section in d3750ad7e. |
||
|
||
r.Event(event) | ||
} | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Note to self: Remember that this needs to be
beat
in the 6.x backport PR.