Skip to content
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

Cherry-pick to 6.x: Add OS Name into add-host-metadata (#9405) #9444

Closed
wants to merge 1 commit into from
Closed

Cherry-pick to 6.x: Add OS Name into add-host-metadata (#9405) #9444

wants to merge 1 commit into from

Conversation

kaiyan-sheng
Copy link
Contributor

  • Add OS Name into add-host-metadat

  • Run gofmt

  • Add changelog and update documentation

  • Update changelog

@@ -72,6 +74,11 @@ func ReportInfo(_ monitoring.Mode, V monitoring.Visitor) {
monitoring.ReportString(V, "platform", info.OS.Platform)
monitoring.ReportString(V, "version", info.OS.Version)
monitoring.ReportString(V, "family", info.OS.Family)
<<<<<<< HEAD

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

expected statement, found '<<' (and 1 more errors)

* Add OS Name into add-host-metadat

* Run gofmt

* Add changelog and update documentation

* Update changelog
@kaiyan-sheng
Copy link
Contributor Author

I think this cherry pick also picked up other changes :(

  • Add service.type field to Metricbeat. {pull}8965[8965]
  • Support GET requests in Jolokia module. {issue}8566[8566] {pull}9226[9226]
  • Add host.os.name field to add_host_metadata processor. {issue}8948[8948] {pull}9405[9405]

@elasticdog
Copy link

I had to restart Jenkins to perform upgrades and this job was cancelled...kicking it off again.

Jenkins, test this please.

Copy link
Member

@jsoriano jsoriano left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Only a note about the changelog.

Also, how have you created this PR? You can use the ./dev-tools/cherrypick_pr script to create these backport PRs, it also adds labels and references to original PR automatically.

@@ -108,6 +108,9 @@ https://github.com/elastic/beats/compare/v6.5.0...6.x[Check the HEAD diff]
- Test etcd module with etcd 3.3. {pull}9068[9068]
- Add setting to disable docker cpu metrics per core. {pull}9194[9194]
- The `elasticsearch/node` metricset now reports the Elasticsearch cluster UUID. {pull}8771[8771]
- Add service.type field to Metricbeat. {pull}8965[8965]
- Support GET requests in Jolokia module. {issue}8566[8566] {pull}9226[9226]
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please remove these lines from this PR (git uses to do this with these kind of merges).

Copy link
Member

@jsoriano jsoriano Dec 9, 2018

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It is not that you have cherry-picked more changes than needed, the problem is only here in the automatic merge of the changelog, this uses to happen :)

@ruflin
Copy link
Contributor

ruflin commented Dec 10, 2018

@kaiyan-sheng For backports I strongly recommend to use the cherrypick_pr script: https://github.com/elastic/beats/blob/master/dev-tools/cherrypick_pr It will do a bit of magic for you like labels etc.

@@ -917,7 +917,9 @@ The fields added to the event are looking as following:
"family":"darwin",
"build":"16G1212",
"platform":"darwin",
"version":"10.12.6"
"version":"10.12.6",
"kernel":"16.7.0",
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It seems kernel was added in an other PR then your original PR. Perhaps we should backport these separately to make sure we have all the code.

@kaiyan-sheng
Copy link
Contributor Author

Will close this pr after using https://github.com/elastic/beats/blob/master/dev-tools/cherrypick_pr to generate a new pr: #9471

@kaiyan-sheng kaiyan-sheng deleted the backport-os-name branch December 10, 2018 17:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants