-
Notifications
You must be signed in to change notification settings - Fork 832
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
Make MAX_SCALE
and MAX_BUCKETS
in Base2ExponentialHistogramAggregation
configurable via Env vars
#5632
Comments
Are you using the prometheus exporter (i.e. The environment variable you're modeling this suggestion off are defined in the specification here. We're bound by the specification in terms of which environment variables we support. We could potentially add an environment variable with an |
Java Otel Agent -> Sidecar OTLP collector (aws-otel-collector) -> Prometheus (using
From what I understood from the docs, the In that sense, when used with the java agent, there is no way to configure it. And because there is a moratorium, what is the recommended way of updating the configuration parameter? Maybe the java agent can be kept outside that moratorium because in SDK we can programmatically change stuff but in the agent there is no other way than configuration parameters? And they don't have to be a part of the SDK, can be special to the agent? |
There is a way, but its not particularly easy. You can package up an
Other examples have come up (see this) of folks asking for exceptions to the moratorium. My inclination is to provide temporary / experimental java specific environment variable support only if there is no other way to solve the configuration problem using autoconfiguration customization. |
Yep, seems like agent extensions are way to go. Initially I was worried about writing one but it seems like writing one will be the best option any way. |
You might be interested in #5652, which will make it easier to customize Otlp{Protocol}MetricExporter via |
Is your feature request related to a problem? Please describe.
Prometheus remote write extension requires scale to be between -4 and 8. Thus, default java instrumentor can't export exponential histograms to prometheus.
Describe the solution you'd like
Make
MAX_SCALE
andMAX_BUCKETS
configurable via an env var. Such asDescribe alternatives you've considered
We don't want to deep dive into the SDK to configure defaults. We are using pre-built jars of instrumentators and trying to configure them using env vars.
Additional context
This issue is being handled in open-telemetry/opentelemetry-collector-contrib#24026 as well. But it just got merged and I still think having customizable scales by default can benefit the user.
The text was updated successfully, but these errors were encountered: