Skip to content

System tests for OTel policies must check that the default policy template name matches with the expected receiver #2974

@jsoriano

Description

@jsoriano

Follow up to elastic/kibana#237145.

Default dataset for OTel inputs should be the same that would be used by the vanilla OTel collector with the community receiver.

This helps to integrate with content packages developed for the community receivers. For example the MySQL content package expects documents to contain mysqlreceiver.otel dataset (see here). So a possible mysql input package should have mysqlreceiver as policy template name:

...
policy_templates:
  - name: mysqlreceiver # <- This name is used as default dataset in input packages.
    input: otelcol
    ...

Add a check to ensure that this name, and by this, the default dataset, corresponds to the one of the receiver.

Future integration packages for OTel will also need to take this into account (https://github.com/elastic/ingest-dev/issues/5713).

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions