-
Notifications
You must be signed in to change notification settings - Fork 2.4k
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
Add an ability to select Kafka partition based on resource tags for metrics #31675
Comments
Pinging code owners:
See Adding Labels via Comments if you do not have permissions to add labels yourself. |
Thanks for filing this issue, I agree that the exporter should be able to configure the key on exported telemetry. I have some thoughts on implementation but I can comment on the PR. |
**Description:** Add resource attributes based partitioning for OTLP metrics In our backend we really need an ability to distribute metrics based on resource attributes. For this I added additional flag to the configuration. Some code from traces partitioning by traceId reused. Judging by issues, this feature is anticipated by several more people. **Link to tracking Issue:** [31675](#31675) Additionally this feature was menioned in these issues: [29433](#29433), [30666](#30666) **Testing:** Added tests for hashing utility. Added tests for marshalling and asserting correct keys and the number of messages. Tested locally with host metrics and chained OTLP metrics receiver. **Documentation:** Changelog entry Flag is added to the doc of KafkaExporter --------- Co-authored-by: Curtis Robert <[email protected]>
This issue has been inactive for 60 days. It will be closed in 60 days if there is no activity. To ping code owners by adding a component label, see Adding Labels via Comments, or if you are unsure of which component this issue relates to, please ping Pinging code owners:
See Adding Labels via Comments if you do not have permissions to add labels yourself. |
Closing, since the change was merged. |
Fixed by #31315 👍 |
Component(s)
exporter/kafka
Is your feature request related to a problem? Please describe.
Our metric aggregation backend consumes Kafka partitions and needs each metrics from each server to land into the same Kafka partition.
Describe the solution you'd like
I would like to have a flag in kafka exporter, which would indicate the result kafka payload would have a partitioning key, calculated based on sorted resource tags.
Describe alternatives you've considered
Alternative to this would be to write an additional balancing middleware.
Additional context
I have already implemented the feature in the pull request #31315
Would really appreciate any feedback on it.
Thank you!
The text was updated successfully, but these errors were encountered: