-
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
[8.15](backport #40324) use go-sysinfo v1.14.1 and elastic-agent-system-metrics v0.10.6 #40523
Conversation
* 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
Cherry-pick of a4568f9 has failed:
To fix up this pull request, you can check it out locally. See documentation: https://docs.github.com/en/pull-requests/collaborating-with-pull-requests/reviewing-changes-in-pull-requests/checking-out-pull-requests-locally |
Pinging @elastic/elastic-agent-data-plane (Team:Elastic-Agent-Data-Plane) |
This pull request is now in conflicts. Could you fix it? 🙏
|
This is a sort of maybe breaking change even though it makes us ECS compliant. Putting it in a patch release might surprise some people. @pierrehilbert is there a reason we can't just let this go out in 8.16 instead? |
@cmacknz the justification here is that #40507 needs the update to elastic-agent-system metrics, but elastic-agent-system-metrics contains a breaking change that's fixed by this PR. I figured it would be better to just backport this PR than re-implement that portion that allows us to update elastic-agent-system metrics, but if you disagree I can just copy-and-paste the handful of lines in |
Yeah we frequently have to backport system metrics updates to get updates that mitigate CVEs so coupling breaking changes into them is a pain. It looks like the original PR would have made 8.15.0 if we had backported at the same time it merged to main and we just missed it. I don't think we should put potential breaking changes in patch releases. Let's add a flag to opt in to the lowercasing, and set it to false in 8.15 and true on main. That gets around this problem (alternative solutions with the same result also work for me). |
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.
Requesting changes since I don't think we want approved breaking changes in patch releases.
This pull request has not been merged yet. Could you please review and merge it @AndersonQ? 🙏 |
This pull request is now in conflicts. Could you fix it? 🙏
|
not the most elegant solution, but it fixes the problem with minimal changes and impact: |
* 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
…nto mergify/bp/8.15/pr-40324
This pull request has not been merged yet. Could you please review and merge it @AndersonQ? 🙏 |
This pull request is now in conflicts. Could you fix it? 🙏
|
closing it as elastic/go-sysinfo#236 was closed |
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
[ ] 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 inCHANGELOG.next.asciidoc
orCHANGELOG-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
host.hostname
is being lowercased #39993Screenshots
This is an automatic backport of pull request #40324 done by Mergify.
Related issues