-
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
Avoid modifications of base module host when building metricsets #20143
Conversation
Running the host parser in metricbeat modules modifies the host in the base module, so host parser cannot be run a second time. Change builders so they don't modify the host.
3ac6858
to
3605783
Compare
💔 Tests FailedExpand to view the summary
Build stats
Test stats 🧪
Test errorsExpand to view the tests failures
Steps errorsExpand to view the steps failures
Log outputExpand to view the last 100 lines of log output
|
jenkins run the tests please |
Discarding this PR by now, original issue fixed by #20149. |
What does this PR do?
Avoid modifying the host in Metricbeat module builders.
Why is it important?
When using light modules, host parser is called twice. First by the actual implementation
of the metricset, and second after adding the configuration defined in the light module
manifest. Without this change we may lose information as the scheme (#16205), or some
other elements in the url (#19849) and parsers will fail or will generate incorrect host data
objects.
Checklist
I have added tests that prove my fix is effective or that my feature works(Covered by tests from Fix: don't miss address scheme #16205).CHANGELOG.next.asciidoc
orCHANGELOG-developer.next.asciidoc
.How to test this PR locally
Related issues
Use cases