Skip to content

Commit a09ec93

Browse files
authored
[receiverhelper] Update metric units (#10657)
#### Description `1` isn't an informative unit for metrics, this should clarify their units. #### Link to tracking issue Fixes #10650
1 parent d628b96 commit a09ec93

File tree

4 files changed

+43
-18
lines changed

4 files changed

+43
-18
lines changed
Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
# Use this changelog template to create an entry for release notes.
2+
3+
# One of 'breaking', 'deprecation', 'new_component', 'enhancement', 'bug_fix'
4+
change_type: bug_fix
5+
6+
# The name of the component, or a single word describing the area of concern, (e.g. otlpreceiver)
7+
component: receiverhelper
8+
9+
# A brief description of the change. Surround your text with quotes ("") if it needs to start with a backtick (`).
10+
note: Update units for internal telemetry
11+
12+
# One or more tracking issues or pull requests related to the change
13+
issues: [10650]
14+
15+
# (Optional) One or more lines of additional information to render under the primary note.
16+
# These lines will be padded with 2 spaces and then inserted directly into the document.
17+
# Use pipe (|) for multiline entries.
18+
subtext:
19+
20+
# Optional: The change log or logs in which this entry should be included.
21+
# e.g. '[user]' or '[user, api]'
22+
# Include 'user' if the change is relevant to end users.
23+
# Include 'api' if there is a change to a library API.
24+
# Default: '[user]'
25+
change_logs: []

receiver/receiverhelper/documentation.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -12,44 +12,44 @@ Number of log records successfully pushed into the pipeline.
1212

1313
| Unit | Metric Type | Value Type | Monotonic |
1414
| ---- | ----------- | ---------- | --------- |
15-
| 1 | Sum | Int | true |
15+
| {records} | Sum | Int | true |
1616

1717
### otelcol_receiver_accepted_metric_points
1818

1919
Number of metric points successfully pushed into the pipeline.
2020

2121
| Unit | Metric Type | Value Type | Monotonic |
2222
| ---- | ----------- | ---------- | --------- |
23-
| 1 | Sum | Int | true |
23+
| {datapoints} | Sum | Int | true |
2424

2525
### otelcol_receiver_accepted_spans
2626

2727
Number of spans successfully pushed into the pipeline.
2828

2929
| Unit | Metric Type | Value Type | Monotonic |
3030
| ---- | ----------- | ---------- | --------- |
31-
| 1 | Sum | Int | true |
31+
| {spans} | Sum | Int | true |
3232

3333
### otelcol_receiver_refused_log_records
3434

3535
Number of log records that could not be pushed into the pipeline.
3636

3737
| Unit | Metric Type | Value Type | Monotonic |
3838
| ---- | ----------- | ---------- | --------- |
39-
| 1 | Sum | Int | true |
39+
| {records} | Sum | Int | true |
4040

4141
### otelcol_receiver_refused_metric_points
4242

4343
Number of metric points that could not be pushed into the pipeline.
4444

4545
| Unit | Metric Type | Value Type | Monotonic |
4646
| ---- | ----------- | ---------- | --------- |
47-
| 1 | Sum | Int | true |
47+
| {datapoints} | Sum | Int | true |
4848

4949
### otelcol_receiver_refused_spans
5050

5151
Number of spans that could not be pushed into the pipeline.
5252

5353
| Unit | Metric Type | Value Type | Monotonic |
5454
| ---- | ----------- | ---------- | --------- |
55-
| 1 | Sum | Int | true |
55+
| {spans} | Sum | Int | true |

receiver/receiverhelper/internal/metadata/generated_telemetry.go

Lines changed: 6 additions & 6 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

receiver/receiverhelper/metadata.yaml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -12,47 +12,47 @@ telemetry:
1212
receiver_accepted_spans:
1313
enabled: true
1414
description: Number of spans successfully pushed into the pipeline.
15-
unit: "1"
15+
unit: "{spans}"
1616
sum:
1717
value_type: int
1818
monotonic: true
1919

2020
receiver_refused_spans:
2121
enabled: true
2222
description: Number of spans that could not be pushed into the pipeline.
23-
unit: "1"
23+
unit: "{spans}"
2424
sum:
2525
value_type: int
2626
monotonic: true
2727

2828
receiver_accepted_metric_points:
2929
enabled: true
3030
description: Number of metric points successfully pushed into the pipeline.
31-
unit: "1"
31+
unit: "{datapoints}"
3232
sum:
3333
value_type: int
3434
monotonic: true
3535

3636
receiver_refused_metric_points:
3737
enabled: true
3838
description: Number of metric points that could not be pushed into the pipeline.
39-
unit: "1"
39+
unit: "{datapoints}"
4040
sum:
4141
value_type: int
4242
monotonic: true
4343

4444
receiver_accepted_log_records:
4545
enabled: true
4646
description: Number of log records successfully pushed into the pipeline.
47-
unit: "1"
47+
unit: "{records}"
4848
sum:
4949
value_type: int
5050
monotonic: true
5151

5252
receiver_refused_log_records:
5353
enabled: true
5454
description: Number of log records that could not be pushed into the pipeline.
55-
unit: "1"
55+
unit: "{records}"
5656
sum:
5757
value_type: int
5858
monotonic: true

0 commit comments

Comments
 (0)