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 #5191

Merged
merged 4 commits into from
Jul 26, 2024

Conversation

AndersonQ
Copy link
Member

@AndersonQ AndersonQ commented Jul 23, 2024

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 as host.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

  • 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/fragments using the changelog tool
  • [ ] I have added an integration test or an E2E test

Disruptive 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:
Screenshot from 2024-07-23 18-11-13

Related issues

Questions to ask yourself

  • How are we going to support this in production?
  • How are we going to measure its adoption?
  • How are we going to debug this?
  • What are the metrics I should take care of?
  • ...

Copy link
Contributor

mergify bot commented Jul 23, 2024

This pull request does not have a backport label. Could you fix it @AndersonQ? 🙏
To fixup this pull request, you need to add the backport labels for the needed
branches, such as:

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

NOTE: backport-skip has been added to this pull request.

@AndersonQ AndersonQ marked this pull request as ready for review July 25, 2024 11:48
@AndersonQ AndersonQ requested a review from a team as a code owner July 25, 2024 11:48
@AndersonQ AndersonQ requested review from michalpristas and faec July 25, 2024 11:48
@pierrehilbert pierrehilbert added the Team:Elastic-Agent-Control-Plane Label for the Agent Control Plane team label Jul 25, 2024
@elasticmachine
Copy link
Contributor

Pinging @elastic/elastic-agent-control-plane (Team:Elastic-Agent-Control-Plane)

@pierrehilbert pierrehilbert requested review from blakerouse and removed request for faec July 25, 2024 12:07
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`.
@VihasMakwana
Copy link
Contributor

@AndersonQ linting is failing. LGTM otherwise

@AndersonQ AndersonQ merged commit d40d505 into elastic:main Jul 26, 2024
10 of 13 checks passed
@AndersonQ AndersonQ deleted the 39993-fqdn-as-is branch July 26, 2024 13:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backport-skip Team:Elastic-Agent-Control-Plane Label for the Agent Control Plane team
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants