-
Notifications
You must be signed in to change notification settings - Fork 697
Add a configurable max_export_batch_size to the gRPC metrics exporter #2809
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 a configurable max_export_batch_size to the gRPC metrics exporter #2809
Conversation
5ed1b5c
to
e3cff99
Compare
...orter-otlp-proto-grpc/src/opentelemetry/exporter/otlp/proto/grpc/metric_exporter/__init__.py
Outdated
Show resolved
Hide resolved
...orter-otlp-proto-grpc/src/opentelemetry/exporter/otlp/proto/grpc/metric_exporter/__init__.py
Outdated
Show resolved
Hide resolved
opentelemetry-sdk/src/opentelemetry/sdk/metrics/_internal/point.py
Outdated
Show resolved
Hide resolved
...orter-otlp-proto-grpc/src/opentelemetry/exporter/otlp/proto/grpc/metric_exporter/__init__.py
Outdated
Show resolved
Hide resolved
...orter-otlp-proto-grpc/src/opentelemetry/exporter/otlp/proto/grpc/metric_exporter/__init__.py
Outdated
Show resolved
Hide resolved
...orter-otlp-proto-grpc/src/opentelemetry/exporter/otlp/proto/grpc/metric_exporter/__init__.py
Outdated
Show resolved
Hide resolved
opentelemetry-sdk/src/opentelemetry/sdk/metrics/_internal/point.py
Outdated
Show resolved
Hide resolved
Thanks for all the comments, I will fix them. |
If I remember correctly, there will be one data point for each possible attribute set. So the number of metrics should be fine. In the issue, you noticed from your end what was the underlying issue? Was it number of points being high or total number of metrics exceeding the limit overall? |
The number of points being high... |
Then you will probably have to divide the batch based on data points. |
860d2a9
to
9891ea1
Compare
...orter-otlp-proto-grpc/src/opentelemetry/exporter/otlp/proto/grpc/metric_exporter/__init__.py
Show resolved
Hide resolved
9891ea1
to
288a15d
Compare
@overmeulen thanks, approving. Please don't force push your commits to your PR branch, it makes it hard to review new changes because the old commits don't show up anymore. Don't worry about how it will look in |
Noted for next time ! |
288a15d
to
ad2a723
Compare
ad2a723
to
a063e45
Compare
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.
Sorry for the late comments, feel free to merge maintainers. It can be addressed in a follow up.
...orter-otlp-proto-grpc/src/opentelemetry/exporter/otlp/proto/grpc/metric_exporter/__init__.py
Outdated
Show resolved
Hide resolved
...orter-otlp-proto-grpc/src/opentelemetry/exporter/otlp/proto/grpc/metric_exporter/__init__.py
Show resolved
Hide resolved
...orter-otlp-proto-grpc/src/opentelemetry/exporter/otlp/proto/grpc/metric_exporter/__init__.py
Outdated
Show resolved
Hide resolved
Head branch was pushed to by a user without write access
Head branch was pushed to by a user without write access
I don't think the last failure is coming from my PR, I see the same failure on other PRs... |
Contrib SHA needs to be updated. It will be fixed in #2919 |
Description
Add a configurable max_export_batch_size to the gRPC metrics exporter.
This is to avoid reaching the 4MB gRPC limit when observables generate a lot metrics
Fixes #2710
Type of change
How Has This Been Tested?
Does This PR Require a Contrib Repo Change?
Checklist: