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

use go-sysinfo v1.14.1 and elastic-agent-system-metrics v0.10.6 #40324

Merged
merged 4 commits into from
Jul 26, 2024

Conversation

AndersonQ
Copy link
Member

@AndersonQ AndersonQ commented Jul 23, 2024

Proposed commit message

use go-sysinfo v1.14.1 and elastic-agent-system-metrics v0.10.6

go-sysinfo was lower-casing FQDN by default, this new version does not. Not its user should do it if necessary. elastic-agent-system-metrics is also upgraded to a version that lowercase the FQDN when it's used as host.name

Checklist

  • My code follows the style guidelines of this project
  • [ ] I have commented my code, particularly in hard-to-understand areas
  • [ ] I have made corresponding changes to the documentation
  • [ ] I have made corresponding change to the default configuration files
  • [ ] I have added tests that prove my fix is effective or that my feature works
  • [ ] I have added an entry in CHANGELOG.next.asciidoc or CHANGELOG-developer.next.asciidoc.

Disruptive User Impact

It might cause the FQDN or anything using it to be reported with mixed case instead of lower case

How to test this PR locally

The same idea as described on #39993
Ingest data, ensure the host metadata is added and check them on kibana

Screenshots

Screenshot from 2024-07-23 18-11-13

@botelastic botelastic bot added the needs_team Indicates that the issue/PR needs a Team:* label label Jul 23, 2024
Copy link
Contributor

mergify bot commented Jul 23, 2024

This pull request does not have a backport label.
If this is a bug or security fix, could you label this PR @AndersonQ? 🙏.
For such, you'll need to label your PR with:

  • The upcoming major version of the Elastic Stack
  • The upcoming minor version of the Elastic Stack (if you're not pushing a breaking change)

To fixup this pull request, you need to add the backport labels for the needed
branches, such as:

  • backport-v8./d.0 is the label to automatically backport to the 8./d branch. /d is the digit

@AndersonQ AndersonQ added bug Team:Elastic-Agent-Data-Plane Label for the Agent Data Plane team labels Jul 25, 2024
@botelastic botelastic bot removed the needs_team Indicates that the issue/PR needs a Team:* label label Jul 25, 2024
@AndersonQ AndersonQ marked this pull request as ready for review July 25, 2024 11:51
@AndersonQ AndersonQ requested review from a team as code owners July 25, 2024 11:51
@AndersonQ AndersonQ requested review from rdner and VihasMakwana July 25, 2024 11:51
@elasticmachine
Copy link
Collaborator

Pinging @elastic/elastic-agent-data-plane (Team:Elastic-Agent-Data-Plane)

@VihasMakwana
Copy link
Contributor

@AndersonQ I think the test cases are failing because the non-fatal PR is yet to be merged. #40298, it requires one more review from code owner and we should be good to go.

@jlind23 jlind23 self-requested a review July 26, 2024 06:34
@jlind23
Copy link
Collaborator

jlind23 commented Jul 26, 2024

Removed by review, thought it was just a version bump but saw a change in beat.go file.

go-sysinfo was lower-casing FQDN by default, this new version does not. Not its user should do it if necessary. elastic-agent-system-metrics is also upgraded to a version that lowercase the FQDN when it's used as `host.name`
Copy link
Contributor

@VihasMakwana VihasMakwana left a comment

Choose a reason for hiding this comment

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

LGTM!

go.mod Outdated Show resolved Hide resolved
@AndersonQ AndersonQ merged commit a4568f9 into elastic:main Jul 26, 2024
122 checks passed
@AndersonQ AndersonQ deleted the 39993-fqdn-as-is branch July 26, 2024 11:46
@AndersonQ AndersonQ added the backport-8.15 Automated backport to the 8.15 branch with mergify label Aug 14, 2024
mergify bot pushed a commit that referenced this pull request Aug 14, 2024
* use go-sysinfo v1.14.1 and elastic-agent-system-metrics v0.10.6

go-sysinfo was lower-casing FQDN by default, this new version does not. Not its user should do it if necessary. elastic-agent-system-metrics is also upgraded to a version that lowercase the FQDN when it's used as `host.name`

(cherry picked from commit a4568f9)

# Conflicts:
#	go.mod
#	go.sum
AndersonQ added a commit that referenced this pull request Aug 23, 2024
* use go-sysinfo v1.14.1 and elastic-agent-system-metrics v0.10.6

go-sysinfo was lower-casing FQDN by default, this new version does not. Not its user should do it if necessary. elastic-agent-system-metrics is also upgraded to a version that lowercase the FQDN when it's used as `host.name`

(cherry picked from commit a4568f9)

# Conflicts:
#	go.mod
#	go.sum
@lucabelluccini
Copy link
Contributor

For anyone looking at this PR: it was not backported and it will be in 8.16.x as the change might constitute a breaking change in terms of host names

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backport-8.15 Automated backport to the 8.15 branch with mergify bug Team:Elastic-Agent-Data-Plane Label for the Agent Data Plane team
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Regression: host.hostname is being lowercased
5 participants