-
Notifications
You must be signed in to change notification settings - Fork 148
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
Include_labels option in add_resource_metadata not working as expected #3636
Comments
cc @bturquet for prioritisation |
some findings:
Already after the config unpacking - UnpackConfig the configuration is wrong - If add the same label to the node
This issue exists starting from the 17.17.7 (the version it was backported to - relevant PR). Seems that elastic/beats#29133 was not working as expected at least for the k8s module, will check it also for the add_kubernetes_metadata processor and the kubernetes provider |
configuration
In https://github.com/elastic/beats/pull/29133/files was removed ..., in https://github.com/elastic/beats/pull/29329/files So before the changes above, configuration contained only the values defined in the customer config, default values are not defined: I've also tested the version 7.17.6 - defining After the changes above - default values are initialized and merged during the unpacking in https://github.com/elastic/go-ucfg/blob/main/reify.go#L434 Seems there is some issue during the merging. Update:
|
related PRs:
add_resource_metadata processor does not work for metricbeat
|
fix default metadata config: ensure that AddResourceMetadataConfig.Node and AddResourceMetadataConfig.Namespace are different objects Relates elastic/elastic-agent#3636 Signed-off-by: Tetiana Kravchenko <tetiana.kravchenko@elastic.co>
Another issue:
Update: no issues there, see comment #3346 (comment) |
Description:
According to documentation users can configure
include_labels
option to specify and filter the labels being ingested.The include_labels option can be configured under namespace and node resources, implying that users can configure seperately the labels they want per kind of resource
See eg.
But the configuration of include_labels under namespace leads to node labels being lost.
All versions of 8.10.2 and above have been verified that showcase above functionality.
Details:
Steps to reproduce:
With the default configuration you will notice that all namespace and node labels are being collected
Edit the advanced options of state_pod dataset inside your Kubernetes Integration Policy
You will notice that include_labels condition applies to both nodes and namespace metadata, resulting to node labels being lost
The text was updated successfully, but these errors were encountered: