-
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
Verify ECS alignment in container fields reported by kubernetes module and meta processor #23585
Comments
Pinging @elastic/integrations (Team:Integrations) |
|
SummaryRight now it seems that we have not been consistent on the way we report container ECS fields. There are 2 ways we report container ECS fields:
alias
copy explicitlySo far the
We keep track of the original fields we need to remove at #13911 At the same time Open issueThe question here is: what approach we should follow in k8s part specifically and in any similar case in general in the future. Using @ruflin @kaiyan-sheng @jsoriano let's continue the discussion here. |
Heads-up on this (cc: @kaiyan-sheng @jsoriano ). I did a simple test to verify that using It seems that we are not able to search/visualise with reference to the @exekias does it happen to remember why we preferred to just copy |
Could you check if the alias is actually in the index pattern? This alias is defined with
|
You are right @jsoriano 👍🏼 !!! With
And now it seems to be possible to both search and visualise using the alias: |
+1 to use alias more for deprecated fields if they work well with visualizations. |
Using alias sounds good to me! I will work on a PR to change the "copy" approach we have for k8s fields so as to further test the alias approach and use it for future reference. |
So after some investigation on #24380, we end up to change how we handle We didn't do the same for In 8.0 we can completely remove the alias field We can use this issue as reference in the future when it comes to ECS fields and deprecation plan. cc: @ruflin |
Discussing with @ChrsMark the removal of |
What did during the migration to 7.0 is to offer users a flag to enable the alias if they want it, but it was opt in. The problem with keep it by default is that you will keep the fields forever. Having 2 fields with the same meaning is not great and if we keep having more and more aliases, the overall number of fields keeps growing. It is here only about 2 fields it will set a precedence and we will use it in other places too. For the fields that have separate values, agree we should keep them if these provide value. |
Ok @ruflin I will remove |
We need to make sure that we have consistent way of aligning common ECS fields across integrations reporting same resource information. An example can be
container.image.name
andkubernetes.container.image
(added at #20984) which is actually the same field but it not aliased like what is happening with Docker:Update:
Verify that
state_*
metricsets follow ECS. For instance testingstate_container
datastream of k8s package I get:So
kubernetes.container.*
seem to need to be changed.The text was updated successfully, but these errors were encountered: