-
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
Add DeDot in add_docker_metadata processor #9505
Conversation
Remove default version qualifier and rename the environment variable to set it from `BEAT_VERSION_QUALIFIER` to `VERSION_QUALIFIER` this will align with other parts of the stack. **Tested with filebeat.** ``` ❯ ./filebeat version [08:39:01] filebeat version 7.0.0 (amd64), libbeat 7.0.0 [0a0c267 built 2018-11-19 13:38:15 +0000 UTC] ``` **Without the patch** ``` ❯ ./filebeat version [08:40:07] filebeat version 7.0.0-alpha1 (amd64), libbeat 7.0.0-alpha1 [b007837 built 2018-11-19 13:39:59 +0000 UTC] ``` Fixes: #8384
@kaiyan-sheng Thanks for the PR. Could you also in the PR describe what was changed so it can be compared to the actual code changes? |
Pinging @elastic/infrastructure |
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.
I would have expected this change to contain a config option so the user can turn it on / off especially for compatibility reasons with older versions.
@@ -847,6 +847,7 @@ processors: | |||
#match_source_index: 4 | |||
#match_short_id: true | |||
#cleanup_timeout: 60 | |||
#labels.dedot: false |
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.
Just wanted to comment that we so far use dedot.enabled
but realised not even the naming of our config options are consistent :-(
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.
Oh, I see dedot.enabled
in http module. We can think about converging these options in a follow up.
The only thing is that for k8s we will have to think if we want two options, one for labels and another one for annotations.
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.
Also not sure, both works for me.
You will need to |
Something seems still pending, you may need to run |
@@ -97,6 +97,22 @@ endif::[] | |||
[[docker]] | |||
*docker:* | |||
|
|||
ifeval::["{release-state}"=="unreleased"] |
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.
I wonder how this was related to this PR?
#9602) * Cherry-pick to 6.x: Add DeDot in add_docker_metadata processor (#9505) * Add DeDot in add_docker_metadata processor * Add dedot into config and default to be false * Update changelog and documentation * Add documentation into processors-using.asciidoc * Run mage fmt update under x-pack filebeat * Run mage fmt update on x-pack metricbeat * Run update again * Run make update fmt from top level dir * Remove mistakes from rebase * Remove repeated doc (cherry picked from commit 58573a9) * remove extra line in data.json
* Never default to a qualifier when none of them are set. (elastic#9148) Remove default version qualifier and rename the environment variable to set it from `BEAT_VERSION_QUALIFIER` to `VERSION_QUALIFIER` this will align with other parts of the stack. **Tested with filebeat.** ``` ❯ ./filebeat version [08:39:01] filebeat version 7.0.0 (amd64), libbeat 7.0.0 [0a0c267 built 2018-11-19 13:38:15 +0000 UTC] ``` **Without the patch** ``` ❯ ./filebeat version [08:40:07] filebeat version 7.0.0-alpha1 (amd64), libbeat 7.0.0-alpha1 [b007837 built 2018-11-19 13:39:59 +0000 UTC] ``` Fixes: elastic#8384 * Add DeDot in add_docker_metadata processor * Add dedot into config and default to be false * Update changelog and documentation * Add documentation into processors-using.asciidoc * Run mage fmt update under x-pack filebeat * Run mage fmt update on x-pack metricbeat * Run update again * Run make update fmt from top level dir * Remove mistakes from rebase * Remove repeated doc
…ic#9505) (elastic#9602) * Cherry-pick to 6.x: Add DeDot in add_docker_metadata processor (elastic#9505) * Add DeDot in add_docker_metadata processor * Add dedot into config and default to be false * Update changelog and documentation * Add documentation into processors-using.asciidoc * Run mage fmt update under x-pack filebeat * Run mage fmt update on x-pack metricbeat * Run update again * Run make update fmt from top level dir * Remove mistakes from rebase * Remove repeated doc (cherry picked from commit 58573a9) * remove extra line in data.json
This pr is for issue: #9350
Currently metrics from docker container is after dedot, which look like this:
and metrics from postgresql is not dedotted, which look like:
This PR will add a config option in add_docker_metadata processor to enable/disable dedot.
closes #9350