data-prepper

by OpenSearch

Helm chartv0.3.1App 2.8.0Apache-2.0Verified publisher

A Helm chart for Data Prepper

About this chart

Data Prepper Helm Chart

A Helm chart for Data Prepper

Homepage: https://opensearch.org/docs/latest/data-prepper/

Data Prepper is an essential component of the OpenSearch project, designed for high-volume data transformation and ingestion into OpenSearch. This Helm chart simplifies deploying Data Prepper on Kubernetes environments, ensuring you can easily set up your data processing pipelines.

Requirements

Before installing the Data Prepper Helm chart, ensure your environment meets the following requirements:

  • Kubernetes >= 1.14
  • Helm >= 2.17.0
  • We recommend having at least 4 GiB of memory available for this deployment. A minimum of 2 GiB may suffice, but less than that could lead to deployment failures.

Installation

To install the Data Prepper Helm chart, follow these steps:

  • Add the OpenSearch Helm repository if you haven't already:
helm repo add opensearch https://opensearch-project.github.io/helm-charts/
helm repo update
  • Install the Data Prepper chart with:
helm install my-data-prepper-release opensearch/data-prepper

Replace my-data-prepper-release with your desired release name. When no explicit pipeline is defined, this will configure a demo pipeline using a random source and stdout sink.

Configuration

The Data Prepper Helm chart comes with a variety of configuration options to tailor the deployment to your needs. The default values are specified in the values.yaml file. You can override these values by providing your own values.yaml file during installation or by specifying configuration options with --set flags.

For a detailed list of configuration options, refer to the values.yaml file or the Data Prepper documentation.

Uninstalling the Chart

To uninstall/delete the my-data-prepper deployment:

helm delete my-data-prepper

This command removes all the Kubernetes components associated with the chart and deletes the release.

Contributing

We welcome contributions! Please read our CONTRIBUTING.md for details on how to submit contributions to this project.

Maintainers

NameEmailUrl
gaiksayahttps://github.com/gaiksaya
peterzhuamazonhttps://github.com/peterzhuamazon
prudhvigodithihttps://github.com/prudhvigodithi
sergkhttps://github.com/sergk
TheAlgohttps://github.com/TheAlgo

Source Code

Values

KeyTypeDefaultDescription
affinityobject{}
autoscaling.enabledboolfalse
autoscaling.maxReplicasint100
autoscaling.minReplicasint1
autoscaling.targetCPUUtilizationPercentageint80
configobject{"data-prepper-config.yaml":"ssl: false\n# circuit_breakers:\n# heap:\n# usage: 2gb\n# reset: 30s\n# check_interval: 5s\n","log4j2-rolling.properties":"#\n# Copyright OpenSearch Contributors\n# SPDX-License-Identifier: Apache-2.0\n#\n\nstatus = error\ndest = err\nname = PropertiesConfig\n\nproperty.filename = log/data-prepper/data-prepper.log\n\nappender.console.type = Console\nappender.console.name = STDOUT\nappender.console.layout.type = PatternLayout\nappender.console.layout.pattern = %d{ISO8601} [%t] %-5p %40C - %m%n\n\nappender.rolling.type = RollingFile\nappender.rolling.name = RollingFile\nappender.rolling.fileName = ${filename}\nappender.rolling.filePattern = logs/data-prepper.log.%d{MM-dd-yy-HH}-%i.gz\nappender.rolling.layout.type = PatternLayout\nappender.rolling.layout.pattern = %d{ISO8601} [%t] %-5p %40C - %m%n\nappender.rolling.policies.type = Policies\nappender.rolling.policies.time.type = TimeBasedTriggeringPolicy\nappender.rolling.policies.time.interval = 1\nappender.rolling.policies.time.modulate = true\nappender.rolling.policies.size.type = SizeBasedTriggeringPolicy\nappender.rolling.policies.size.size=100MB\nappender.rolling.strategy.type = DefaultRolloverStrategy\nappender.rolling.strategy.max = 168\n\nrootLogger.level = warn\nrootLogger.appenderRef.stdout.ref = STDOUT\nrootLogger.appenderRef.file.ref = RollingFile\n\nlogger.pipeline.name = org.opensearch.dataprepper.pipeline\nlogger.pipeline.level = info\n\nlogger.parser.name = org.opensearch.dataprepper.parser\nlogger.parser.level = info\n\nlogger.plugins.name = org.opensearch.dataprepper.plugins\nlogger.plugins.level = info\n"}Data Prepper configuration
config."data-prepper-config.yaml"string"ssl: false\n# circuit_breakers:\n# heap:\n# usage: 2gb\n# reset: 30s\n# check_interval: 5s\n"Main Data Prepper configuration file content
config."log4j2-rolling.properties"string"#\n# Copyright OpenSearch Contributors\n# SPDX-License-Identifier: Apache-2.0\n#\n\nstatus = error\ndest = err\nname = PropertiesConfig\n\nproperty.filename = log/data-prepper/data-prepper.log\n\nappender.console.type = Console\nappender.console.name = STDOUT\nappender.console.layout.type = PatternLayout\nappender.console.layout.pattern = %d{ISO8601} [%t] %-5p %40C - %m%n\n\nappender.rolling.type = RollingFile\nappender.rolling.name = RollingFile\nappender.rolling.fileName = ${filename}\nappender.rolling.filePattern = logs/data-prepper.log.%d{MM-dd-yy-HH}-%i.gz\nappender.rolling.layout.type = PatternLayout\nappender.rolling.layout.pattern = %d{ISO8601} [%t] %-5p %40C - %m%n\nappender.rolling.policies.type = Policies\nappender.rolling.policies.time.type = TimeBasedTriggeringPolicy\nappender.rolling.policies.time.interval = 1\nappender.rolling.policies.time.modulate = true\nappender.rolling.policies.size.type = SizeBasedTriggeringPolicy\nappender.rolling.policies.size.size=100MB\nappender.rolling.strategy.type = DefaultRolloverStrategy\nappender.rolling.strategy.max = 168\n\nrootLogger.level = warn\nrootLogger.appenderRef.stdout.ref = STDOUT\nrootLogger.appenderRef.file.ref = RollingFile\n\nlogger.pipeline.name = org.opensearch.dataprepper.pipeline\nlogger.pipeline.level = info\n\nlogger.parser.name = org.opensearch.dataprepper.parser\nlogger.parser.level = info\n\nlogger.plugins.name = org.opensearch.dataprepper.plugins\nlogger.plugins.level = info\n"Log4j2 configuration for Data Prepper logging
extraEnvslist[]Extra environment variables to pass to the Data Prepper container
fullnameOverridestring""Override the default fullname for the deployment
global.dockerRegistrystring""Set if you want to change the default docker registry, e.g. a private one.
image.pullPolicystring"IfNotPresent"The image tag to pull. Default: IfNotPresent
image.repositorystring"opensearchproject/data-prepper"The image repository from which to pull the Data Prepper image
image.tagstring""Overrides the image tag whose default is the chart appVersion.
imagePullSecretslist[]List of imagePullSecrets to use if the Docker image is stored in a private registry
ingress.annotationsobject{}
ingress.classNamestring""
ingress.enabledboolfalse
ingress.hosts[0].hoststring"chart-example.local"
ingress.hosts[0].paths[0].pathstring"/"
ingress.hosts[0].paths[0].pathTypestring"ImplementationSpecific"
ingress.tlslist[]
nameOverridestring""Override the default name for the deployment
nodeSelectorobject{}
pipelineConfigobject(See below)Pipeline configuration
pipelineConfig.enabledbooleanfalseEnable inline configuration in config sub key.
pipelineConfig.configobject{}Pipeline configuration file inline if enabled is set to true
pipelineConfig.demoPipelineboolean""If set, a demo pipeline will be provisioned with source random and sink stdout.
pipelineConfig.existingSecretstring""The name of an existing secret containing the pipeline configuration. If enabled is false existingSecret is used. The existingSecret must have a key named pipelines.yaml.
podAnnotationsobject{}
podLabelsobject{}
podSecurityContextobject{}
initContainerslist[]Optional list of init containers for the pod
portslist[{"name":"http-source","port":2021},{"name":"otel-traces","port":21890},{"name":"otel-metrics","port":21891},{"name":"otel-logs","port":21892}]Data Prepper ports
ports[0]object{"name":"http-source","port":2021}The port that the source is running on. Default value is 2021. Valid options are between 0 and 65535. https://opensearch.org/docs/latest/data-prepper/pipelines/configuration/sources/http-source/
ports[1]object{"name":"otel-traces","port":21890}The port that the otel_trace_source source runs on. Default value is 21890. https://opensearch.org/docs/latest/data-prepper/pipelines/configuration/sources/otel-trace-source/
ports[2]object{"name":"otel-metrics","port":21891}The port that the OpenTelemtry metrics source runs on. Default value is 21891. https://opensearch.org/docs/latest/data-prepper/pipelines/configuration/sources/otel-metrics-source/
ports[3]object{"name":"otel-logs","port":21892}Represents the port that the otel_logs_source source is running on. Default value is 21892. https://opensearch.org/docs/latest/data-prepper/pipelines/configuration/sources/otel-logs-source/
replicaCountint1
resourcesobject{}
securityContextobject{}
service.typestring"ClusterIP"
serviceAccount.annotationsobject{}Annotations to add to the service account
serviceAccount.automountbooltrueAutomatically mount a ServiceAccount's API credentials?
serviceAccount.createbooltrueSpecifies whether a service account should be created
serviceAccount.namestring""The name of the service account to use. If not set and create is true, a name is generated using the fullname template
tolerationslist[]
volumeMountslist[]
volumeslist[]

License

This project is licensed under the Apache License 2.0 - see the LICENSE.txt file for details.

Deploy data-prepper with OpenTenant

Each tenant gets its own release of this chart, with its own namespace, secrets and domain. The builder below already has data-prepper on a Hetzner server. Change the host, add apps from the marketplace, then copy the generated files. Providers and prices are samples, and nothing here is sent anywhere.

  1. Pick a serverConnect Hetzner, OVHcloud or AWS. The builder starts on Hetzner, the cheapest sample rate.
  2. Place the chartdata-prepper is pinned at v0.3.1 in opentenant.yaml. Drag more apps from the marketplace onto a rack.
  3. ApplySave opentenant.yaml and main.tf from the console, then run the commands below.
# opentenant.yaml, main.tf and dns.tf come from the builder below
opentenant validate opentenant.yaml
terraform init && terraform apply