Skip to content

feat(receiver/statsdreceiver): Introduce Explicit Bucket#41503

Merged
atoulme merged 69 commits intoopen-telemetry:mainfrom
clavinjune:feat/statsd-receiver-introduce-explicit-bucket
Sep 6, 2025
Merged

feat(receiver/statsdreceiver): Introduce Explicit Bucket#41503
atoulme merged 69 commits intoopen-telemetry:mainfrom
clavinjune:feat/statsd-receiver-introduce-explicit-bucket

Conversation

@clavinjune
Copy link
Contributor

@clavinjune clavinjune commented Jul 23, 2025

Description

Introduce Explicit Bucket for Histogram configuration

      histogram:
        max_size: 170
        explicit_buckets:
          - matcher_pattern: "foo.*"
            buckets: [1, 10, 100]
          - matcher_pattern: "bar.*"
            buckets: [0.1, 0.5, 1]

If the metrics name matches one of the matcher pattern (sequential order), it will use the explicit bucket instead of exponential histogram

Link to tracking issue

Fixes #41203

Testing

Adding unit tests

Documentation

Added in the readme

Signed-off-by: clavinjune <24659468+clavinjune@users.noreply.github.com>
@clavinjune clavinjune requested review from a team and dmitryax as code owners July 23, 2025 03:27
@github-actions github-actions bot added the receiver/statsd statsd related issues label Jul 23, 2025
@github-actions github-actions bot requested a review from jmacd July 23, 2025 03:27
@clavinjune clavinjune changed the title feat(receiver/statsdreceiver): Introduce Explicit Bucket Draft: feat(receiver/statsdreceiver): Introduce Explicit Bucket Jul 23, 2025
@clavinjune clavinjune marked this pull request as draft July 23, 2025 03:28
@clavinjune clavinjune marked this pull request as ready for review August 2, 2025 15:17
@clavinjune clavinjune changed the title Draft: feat(receiver/statsdreceiver): Introduce Explicit Bucket feat(receiver/statsdreceiver): Introduce Explicit Bucket Aug 2, 2025
@clavinjune
Copy link
Contributor Author

@dmitryax @jmacd @mwear @edmocosta please help to review and approve 🙇

Copy link
Member

@dmitryax dmitryax left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Overall LGTM. Just couple comment. Sorry for taking to loong to review

Signed-off-by: clavinjune <24659468+clavinjune@users.noreply.github.com>
…it buckets as it is duplicated with the config validation

Signed-off-by: clavinjune <24659468+clavinjune@users.noreply.github.com>
…icit bucket and exponential bucket

Signed-off-by: clavinjune <24659468+clavinjune@users.noreply.github.com>
Signed-off-by: clavinjune <24659468+clavinjune@users.noreply.github.com>
@atoulme atoulme merged commit 4ea1cb8 into open-telemetry:main Sep 6, 2025
184 checks passed
@github-actions github-actions bot added this to the next release milestone Sep 6, 2025
@clavinjune clavinjune deleted the feat/statsd-receiver-introduce-explicit-bucket branch September 6, 2025 07:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[statsdreceiver] Support More Configuration Like Statsd Exporter

5 participants