-
Notifications
You must be signed in to change notification settings - Fork 2.5k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[receiver/statsdreceiver] add support for distribution type metrics (#…
…26107) **Description:** <Describe what has changed.> <!--Ex. Fixing a bug - Describe the bug and how this fixes the issue. Ex. Adding a feature - Explain what this achieves.--> Add support for statsd `distribution` type metrics . **Link to tracking Issue:** <Issue number if applicable>[24768](#24768) **Testing:** <Describe what testing was performed and which tests were added.> test config: ``` receivers: statsd: endpoint: "localhost:8125" aggregation_interval: 10s enable_metric_type: true is_monotonic_counter: true timer_histogram_mapping: - statsd_type: "distribution" observer_type: "histogram" histogram: max_size: 50 exporters: logging: verbosity: detailed service: pipelines: metrics: receivers: [statsd] processors: [] exporters: [logging] ``` test data: ``` test.statsdreceiver.dist:1|d|#tag1:Val1 test.statsdreceiver.dist:2|d|#tag1:Val1 test.statsdreceiver.dist:3|d|#tag1:Val1 ``` output: ``` ResourceMetrics #0 Resource SchemaURL: ScopeMetrics #0 ScopeMetrics SchemaURL: InstrumentationScope otelcol/statsdreceiver 0.83.0-dev Metric #0 Descriptor: -> Name: test.statsdreceiver.dist -> Description: -> Unit: -> DataType: ExponentialHistogram -> AggregationTemporality: Delta ExponentialHistogramDataPoints #0 Data point attributes: -> metric_type: Str(distribution) -> tag1: Str(Val1) StartTimestamp: 2023-08-25 15:49:29.595594 +0000 UTC Timestamp: 2023-08-25 15:49:39.596418 +0000 UTC Count: 3 Sum: 6.000000 Min: 1.000000 Max: 3.000000 Bucket (0.957603, 1.000000], Count: 1 Bucket (1.000000, 1.044274], Count: 0 Bucket (1.044274, 1.090508], Count: 0 Bucket (1.090508, 1.138789], Count: 0 Bucket (1.138789, 1.189207], Count: 0 Bucket (1.189207, 1.241858], Count: 0 Bucket (1.241858, 1.296840], Count: 0 Bucket (1.296840, 1.354256], Count: 0 Bucket (1.354256, 1.414214], Count: 0 Bucket (1.414214, 1.476826], Count: 0 Bucket (1.476826, 1.542211], Count: 0 Bucket (1.542211, 1.610490], Count: 0 Bucket (1.610490, 1.681793], Count: 0 Bucket (1.681793, 1.756252], Count: 0 Bucket (1.756252, 1.834008], Count: 0 Bucket (1.834008, 1.915207], Count: 0 Bucket (1.915207, 2.000000], Count: 1 Bucket (2.000000, 2.088548], Count: 0 Bucket (2.088548, 2.181015], Count: 0 Bucket (2.181015, 2.277577], Count: 0 Bucket (2.277577, 2.378414], Count: 0 Bucket (2.378414, 2.483716], Count: 0 Bucket (2.483716, 2.593679], Count: 0 Bucket (2.593679, 2.708511], Count: 0 Bucket (2.708511, 2.828427], Count: 0 Bucket (2.828427, 2.953652], Count: 0 Bucket (2.953652, 3.084422], Count: 1 {"kind": "exporter", "data_type": "metrics", "name": "logging"} ``` **Documentation:** <Describe the documentation added.>
- Loading branch information
Showing
8 changed files
with
134 additions
and
18 deletions.
There are no files selected for viewing
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
# Use this changelog template to create an entry for release notes. | ||
|
||
# One of 'breaking', 'deprecation', 'new_component', 'enhancement', 'bug_fix' | ||
change_type: enhancement | ||
|
||
# The name of the component, or a single word describing the area of concern, (e.g. filelogreceiver) | ||
component: receiver/statsdreceiver | ||
|
||
# A brief description of the change. Surround your text with quotes ("") if it needs to start with a backtick (`). | ||
note: "Add support for distribution type metrics in the statsdreceiver." | ||
|
||
# Mandatory: One or more tracking issues related to the change. You can use the PR number here if no issue exists. | ||
issues: [24768] | ||
|
||
# (Optional) One or more lines of additional information to render under the primary note. | ||
# These lines will be padded with 2 spaces and then inserted directly into the document. | ||
# Use pipe (|) for multiline entries. | ||
subtext: | ||
|
||
# If your change doesn't affect end users or the exported elements of any package, | ||
# you should instead start your pull request title with [chore] or use the "Skip Changelog" label. | ||
# Optional: The change log or logs in which this entry should be included. | ||
# e.g. '[user]' or '[user, api]' | ||
# Include 'user' if the change is relevant to end users. | ||
# Include 'api' if there is a change to a library API. | ||
# Default: '[user]' | ||
change_logs: [user] |
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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