Skip to content

[exporter/kafka] add compression_level to kafka producer configuration #39772

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

Open
vidam-io opened this issue Apr 30, 2025 · 2 comments
Open
Labels
enhancement New feature or request exporter/kafka

Comments

@vidam-io
Copy link
Contributor

vidam-io commented Apr 30, 2025

Component(s)

exporter/kafka

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

I would like to use zstd compression with level 1 in the Kafka exporter. Currently, the Kafka exporter only supports the default compression level (level 3), which may not be optimal for scenarios requiring faster compression and lower CPU usage.

Describe the solution you'd like

The Kafka exporter internally uses the Sarama library, which supports both setting the compression type and compression level via its configuration.

I propose extending the Kafka exporter configuration to include a compression.level field. This field can then be passed to the Sarama Config.Producer.CompressionLevel parameter when initializing the producer.

Describe alternatives you've considered

None identified.

Additional context

Related PR: #39647

@vidam-io vidam-io added enhancement New feature or request needs triage New item requiring triage labels Apr 30, 2025
Copy link
Contributor

Pinging code owners:

See Adding Labels via Comments if you do not have permissions to add labels yourself.

@axw
Copy link
Contributor

axw commented Apr 30, 2025

/label -needs-triage

@github-actions github-actions bot removed the needs triage New item requiring triage label Apr 30, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request exporter/kafka
Projects
None yet
Development

No branches or pull requests

2 participants