feat(filebeat/cel): Allow OTLP explicit bucket histograms via env var#48731
Merged
andrewkroh merged 3 commits intoelastic:mainfrom Feb 10, 2026
Merged
feat(filebeat/cel): Allow OTLP explicit bucket histograms via env var#48731andrewkroh merged 3 commits intoelastic:mainfrom
andrewkroh merged 3 commits intoelastic:mainfrom
Conversation
Contributor
🤖 GitHub commentsJust comment with:
|
Contributor
|
Pinging @elastic/security-service-integrations (Team:Security-Service Integrations) |
Currently, the CEL input forces OTLP exponential histograms, which are not supported by all backends (e.g., APM Server). This change allows users to configure the histogram aggregation using the OTEL_EXPORTER_OTLP_METRICS_DEFAULT_HISTOGRAM_AGGREGATION environment variable. Setting this to "explicit_bucket_histogram" will disable the forced exponential histogram view, allowing the SDK to use explicit bucket histograms. Closes elastic#48730 Testing: Set the following environment variables when running Filebeat with a CEL input: OTEL_METRICS_EXPORTER=console OTEL_EXPORTER_OTLP_METRICS_DEFAULT_HISTOGRAM_AGGREGATION=explicit_bucket_histogram Verify that the output histograms use explicit buckets (look for "BucketCounts" and "ExplicitBounds") instead of exponential buckets ("Scale", "PositiveBucket").
aad77a1 to
f3d5560
Compare
efd6
reviewed
Feb 8, 2026
Contributor
efd6
left a comment
There was a problem hiding this comment.
Is there somewhere that we can put user-facing documentation for this?
Co-authored-by: Dan Kortschak <dan.kortschak@elastic.co>
Member
Author
I've documented the usage of the env var in the doc.go where the otel metrics are described. |
efd6
approved these changes
Feb 10, 2026
mergify bot
pushed a commit
that referenced
this pull request
Feb 10, 2026
…#48731) Currently, the CEL input forces OTLP exponential histograms, which are not supported by all backends (e.g., APM Server). This change allows users to configure the histogram aggregation using the OTEL_EXPORTER_OTLP_METRICS_DEFAULT_HISTOGRAM_AGGREGATION environment variable. Setting this to "explicit_bucket_histogram" will disable the forced exponential histogram view, allowing the SDK to use explicit bucket histograms. Closes #48730 (cherry picked from commit 648345c)
Merged
6 tasks
andrewkroh
added a commit
that referenced
this pull request
Feb 10, 2026
…#48731) (#48753) Currently, the CEL input forces OTLP exponential histograms, which are not supported by all backends (e.g., APM Server). This change allows users to configure the histogram aggregation using the OTEL_EXPORTER_OTLP_METRICS_DEFAULT_HISTOGRAM_AGGREGATION environment variable. Setting this to "explicit_bucket_histogram" will disable the forced exponential histogram view, allowing the SDK to use explicit bucket histograms. Closes #48730 (cherry picked from commit 648345c) Co-authored-by: Andrew Kroh <andrew.kroh@elastic.co>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Proposed commit message
Checklist
stresstest.shscript to run them under stress conditions and race detector to verify their stability../changelog/fragmentsusing the changelog tool.How to test this PR locally
Set the following environment variables when running Filebeat with a CEL input:
Verify that the output histograms use explicit buckets (look for "BucketCounts" and "ExplicitBounds") instead of exponential buckets ("Scale", "PositiveBucket").
Related issues
Use cases
To be able to route histograms through APM server until such time we can migrate to mOTLP.
Screenshots
Logs