-
Notifications
You must be signed in to change notification settings - Fork 1.5k
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 metrics to Kafka exporter #1966
Add metrics to Kafka exporter #1966
Conversation
- add metrics otlp exporter to kafka - add tests for kafka metrics exporter update readme
|
Codecov Report
@@ Coverage Diff @@
## master #1966 +/- ##
==========================================
+ Coverage 91.99% 92.04% +0.05%
==========================================
Files 270 270
Lines 15791 15844 +53
==========================================
+ Hits 14527 14584 +57
+ Misses 860 857 -3
+ Partials 404 403 -1
Continue to review full report at Codecov.
|
This PR was marked stale due to lack of activity. It will be closed in 7 days. |
Adding a comment here to bring this PR up again, @tigrannajaryan just want to confirm there is nothing else needed on my end for this to move forward? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@dshomoye - apologies for the delay in review. Mostly LGTM, I left a few comments.
@tigrannajaryan @bogdandrutu would be great if you or anyone more familiar with the kafka exporter could also take a look.
update marshaller test name update comment on metrics exporter
…trics # Conflicts: # CHANGELOG.md
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, will need confirmation from @owais too and can merge.
What is the motivation to change the topic name? If you proceed with rename the receiver should be updated as well. |
Primarily because |
# Conflicts: # CHANGELOG.md # exporter/kafkaexporter/otlp_marshaller_test.go # go.sum
I believe we are still allowed to make breaking changes, but people might be using this exporter already and rely on the previously published name with their own consumers. Ideally, changes like these would happen in two phases:
|
Understood, in that case, I will revert this breaking change and add the log message for now. |
Add warning for default topic deprecation
@dshomoye re the topic name, isn't it a better practice to not send various types to the same topic? If so we should document this and use different default per metrics and traces. Using the same topic name for both types will break the current kafka receiver, it will fail to unmarshall traces. |
You're absolutely right! Mixing different data types in the same topic is not good practice - even though the user can override for trace/metric. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
For me this looks good, @pavolloffay @tigrannajaryan is it ok to merge this?
Anything needed to merge this now? @pavolloffay |
# Conflicts: # CHANGELOG.md
This PR was marked stale due to lack of activity. It will be closed in 7 days. |
Merging this broke the build: https://app.circleci.com/pipelines/github/open-telemetry/opentelemetry-collector/4718/workflows/59a274c1-241d-4928-8411-2c5330c7fc47 I am going to revert to fix the build. @dshomoye after I revert please create a new PR with this changes. You will need to make some additional changes to make sure the build passes. |
This reverts commit 42a7f66 because it failed the build https://app.circleci.com/pipelines/github/open-telemetry/opentelemetry-collector/4718/workflows/59a274c1-241d-4928-8411-2c5330c7fc47
Add metrics otlp exporter to kafka (previously only supported traces).
Description:
encoding
key specifies encoding for either metrics or traces.otlp_metrics
.Testing:
/examples/demo
). Successfully received metrics and traces in a kafka consumerDocumentation:
Updated kafka exporter README to state new defaults.
Updated CHANGELOG to reflect enhancement.