[linux] Avoid using dynamic templates for flattened objects#12575
Merged
mrodm merged 6 commits intoelastic:mainfrom Feb 14, 2025
Merged
[linux] Avoid using dynamic templates for flattened objects#12575mrodm merged 6 commits intoelastic:mainfrom
mrodm merged 6 commits intoelastic:mainfrom
Conversation
ec0a5c4 to
4b4628e
Compare
fa4ee98 to
91c1977
Compare
…41bb116f37d13f2d4e04502d0
(cherry picked from commit fa96beb)
91c1977 to
163c8ff
Compare
mrodm
commented
Feb 6, 2025
| description: | | ||
| The percentage of used swap memory. | ||
| - name: vmstat.* | ||
| - name: vmstat |
Collaborator
Author
There was a problem hiding this comment.
Documents ingested would be like:
"linux": {
"memory": {
"vmstat": {
"workingset_refault_file": 2138589,
"direct_map_level3_splits": 44,
"direct_map_level2_splits": 1491,
"thp_swpout_fallback": 0,
"htlb_buddy_alloc_success": 0,
...
}
}
}And the content of that field is directly a JSON (as expected for flattened fields):
{
"workingset_refault_file": 2138589,
"direct_map_level3_splits": 44,
"direct_map_level2_splits": 1491,
"thp_swpout_fallback": 0,
"htlb_buddy_alloc_success": 0,
...
}This reverts commit 163c8ff.
mrodm
commented
Feb 11, 2025
|
Pinging @elastic/elastic-agent-data-plane (Team:Elastic-Agent-Data-Plane) |
leehinman
approved these changes
Feb 13, 2025
Contributor
leehinman
left a comment
There was a problem hiding this comment.
I'm not sure about the buildkite changes but the rest of it looks fine to me.
Collaborator
Author
Thanks! |
|
💚 Build Succeeded
History
cc @mrodm |
|
Package linux - 0.7.1 containing this change is available at https://epr.elastic.co/package/linux/0.7.1/ |
flexitrev
pushed a commit
that referenced
this pull request
Mar 20, 2025
Update flattened field definitions to not create dynamic templates for "linux.memory.vmstat.*" fields.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.




Proposed commit message
Update flattened field definitions to not create dynamic templates.
As they were previously, this dynamic template is created
but this definition does not match the fields under
linux.memory.vmstat.With these changes:
Example of errors found (buildkite link):
Checklist
changelog.ymlfile.Author's Checklist
elastic-packageenabled mappings: https://buildkite.com/elastic/integrations/builds/21927.buildkitefolder andgo.mod/go.sumfiles.How to test this PR locally
Run elastic-package with mappings validation enabled and run system tests:
Related issues