Skip to content

[Change Proposal] Support subobjects: false #425

@jsoriano

Description

@jsoriano

It is possible to configure an object with subobjects: false, so its child objects never create subobjects even if they have dots in their names. This is needed in metrics use cases to be able to store metric names or metadata as they are, without dedotting or other transformations.

We need to ensure that at least one of the following mappings produce expected results, so this is supported.


- name: prometheus.labels.*
  type: object
  object_type: keyword
  subobjects: false

Should produce:

  • A dynamic mapping for prometheus.labels.*, with type keyword.
  • A static mapping for prometheus.labels, with type: object and subobjects: false.

- name: prometheus.labels
  type: object
  subobjects: false

Should produce a mapping for prometheus.labels with type: object and subobjects: false, independently of the existence of other related dynamic mappings.


Maybe this already works, but we would need to check it.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Team:EcosystemLabel for the Packages Ecosystem teamdiscussIssue needs discussion

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions