-
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
Allow for modifying json field names with dots in them in beats #5942
Comments
@ruflin: If you have an idea/preference/suggestion how to address this I can have a look into it. |
I think this is actually problem we have to solve in different places but probably have a method internally to do it. In general we should have a method replacing dot separated keys with Here the different fixes we should do:
@christiangalsterer Would be great to have a PR for the |
BTW here is the discussion from the Jolokia side: https://discuss.elastic.co/t/include-fields-problem/109809 |
@christiangalsterer You can use the dedot function introduced here: #5957 |
@ruflin: Thanks for the info. Will have a look into the |
@christiangalsterer Awesome. Ping me if I can be of any help. |
Just like docker labels, add_kubernetes_metadata processors also need to handle k8s labels and annotations. This method should also apply common.DeDot introduced in #5957 for keys of labelMap and annotationsMap. |
PR #5970 available for http/json module. |
This should prevent name collisions and allow filtering on these fields. The feature is enabled by default and cannot be disable as otherwise ingestion could stop as Elasticsearch is returning an error. Currently not config option is provided as this should not be disabled. * Introduces DeDot function in common package * Adds tests to jmx for new functionality * Use new function also for docker labels Related to elastic#5942 Closes elastic#5916
This should prevent name collisions and allow filtering on these fields. The feature is enabled by default and cannot be disable as otherwise ingestion could stop as Elasticsearch is returning an error. Currently not config option is provided as this should not be disabled. * Introduces DeDot function in common package * Adds tests to jmx for new functionality * Use new function also for docker labels Related to #5942 Closes #5916
Based on a discussion started about dots here (micrometer-metrics/micrometer#154 (comment)) I'm now thinking we probably need an additional conversion options to keep the |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
This issue doesn't have a |
Following the suggestion in https://discuss.elastic.co/t/allow-for-renaming-of-json-fields-in-http-module-output/112461 i open this issue to discuss the challenges regarding json field names with dots in them when these get collected/created by beats, especially metricbeat.
The problem is also described in https://discuss.elastic.co/t/v6-0-0-beta2-http-module-mapping-trouble/99703?source_topic_id=112461 and was already addressed in httpbeat, the predecessor of the metricbeat http module (https://github.com/christiangalsterer/httpbeat/blob/master/config/config.go#L34). Unfortunately, the http module does not allow a replacement of dots in json keys collected from the source.
The issue also surfaced in Spring Boot Actuator spring-projects/spring-boot#10449 but it affects other producers of metrics data too, and will not be fixed in Spring Boot 1.5
The text was updated successfully, but these errors were encountered: