opensearch-project / data-prepper

Data Prepper is a component of the OpenSearch project that accepts, filters, transforms, enriches, and routes data at scale.

Home Page:https://opensearch.org/docs/latest/clients/data-prepper/index/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Support alternate CloudWatch configurations for monitoring Data Prepper

dlvenable opened this issue · comments

Is your feature request related to a problem? Please describe.

Data Prepper supports CloudWatch as a metric destination for its own metrics. The data-prepper-core project includes a cloudwatch.properties file.

It is good that Data Prepper is pre-configured for CloudWatch so that no additional configuration is needed.

However, the current approach provides some difficulties:

  • It is difficult to override these configurations
  • When creating a custom Data Prepper distribution, the file in this jar may conflict with other similar files that teams provide.

Describe the solution you'd like

Move the cloudwatch.properties file out of data-prepper-core.jar. Instead, include it in the config directory of Data Prepper at config/cloudwatch.properties. With this, users can change this file and get their own custom configurations.

Describe alternatives you've considered (Optional)

There may still be some value in including the cloudwatch.properties file in the jars. If so, we may wish to move it into data-prepper-main.jar since that jar is more opinionated on how Data Prepper is run.

Additional context

See #4464 for another file that is in data-prepper-core.jar and causing difficulty for custom distributions.