-
Notifications
You must be signed in to change notification settings - Fork 154
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 #5191
Conversation
This pull request does not have a backport label. Could you fix it @AndersonQ? 🙏
NOTE: |
Pinging @elastic/elastic-agent-control-plane (Team:Elastic-Agent-Control-Plane) |
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`.
044f5ca
to
486d164
Compare
|
@AndersonQ linting is failing. LGTM otherwise |
What does this PR do?
go-sysinfo was lower-casing FQDN by default, this new version does not.
elastic-agent-system-metrics
is also upgraded to a version that lowercase the FQDN when it's used ashost.name
.Also it includes the necessary changes to handle the cases where FQND is used for
host.name
and should be lowercased to follow ECS conventions.Why is it important?
The FQDN should not always be lowercased, only when 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 in./changelog/fragments
using the changelog tool[ ] I have added an integration test or an E2E testDisruptive User Impact
By fixing elastic/beats#39993 it might cause the opposite effect and some users which were seeing
host.hostname
lower-cased now might see it with mixed case.How to test this PR locally
Follow the procedure explained on elastic/beats#39993
with this fix:

Related issues
host.hostname
is being lowercased beats#39993Questions to ask yourself