Skip to content

Commit ded0ad4

Browse files
authored
[chore][fluentforwardreceiver] Add stability level per metric (open-telemetry#42960)
<!--Ex. Fixing a bug - Describe the bug and how this fixes the issue. Ex. Adding a feature - Explain what this achieves.--> #### Description open-telemetry/opentelemetry-collector#13756 added support for exposing metrics' stability level in the generated documentation. This PR makes use of this functionality. We start by setting the stability of all metrics to `development`. More info about levels can be found at https://github.com/open-telemetry/opentelemetry-specification/blob/v1.49.0/oteps/0232-maturity-of-otel.md#maturity-levels. Related to: - open-telemetry/opentelemetry-collector#11878 - open-telemetry/opentelemetry-collector#13297 - open-telemetry#35325 - open-telemetry#42809 <!-- Issue number (e.g. #1234) or full URL to issue, if applicable. --> #### Link to tracking issue Fixes ~ <!--Describe what testing was performed and which tests were added.--> #### Testing ~ <!--Describe the documentation added.--> #### Documentation Updated <!--Please delete paragraphs that you did not use before submitting.--> Signed-off-by: ChrsMark <chrismarkou92@gmail.com>
1 parent 5adcfd6 commit ded0ad4

File tree

4 files changed

+40
-30
lines changed

4 files changed

+40
-30
lines changed

receiver/fluentforwardreceiver/documentation.md

Lines changed: 20 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -8,40 +8,40 @@ The following telemetry is emitted by this component.
88

99
### otelcol_fluent_closed_connections
1010

11-
Number of connections closed to the fluentforward receiver
11+
Number of connections closed to the fluentforward receiver [development]
1212

13-
| Unit | Metric Type | Value Type | Monotonic |
14-
| ---- | ----------- | ---------- | --------- |
15-
| 1 | Sum | Int | false |
13+
| Unit | Metric Type | Value Type | Monotonic | Stability |
14+
| ---- | ----------- | ---------- | --------- | --------- |
15+
| 1 | Sum | Int | false | development |
1616

1717
### otelcol_fluent_events_parsed
1818

19-
Number of Fluent events parsed successfully
19+
Number of Fluent events parsed successfully [development]
2020

21-
| Unit | Metric Type | Value Type | Monotonic |
22-
| ---- | ----------- | ---------- | --------- |
23-
| 1 | Sum | Int | false |
21+
| Unit | Metric Type | Value Type | Monotonic | Stability |
22+
| ---- | ----------- | ---------- | --------- | --------- |
23+
| 1 | Sum | Int | false | development |
2424

2525
### otelcol_fluent_opened_connections
2626

27-
Number of connections opened to the fluentforward receiver
27+
Number of connections opened to the fluentforward receiver [development]
2828

29-
| Unit | Metric Type | Value Type | Monotonic |
30-
| ---- | ----------- | ---------- | --------- |
31-
| 1 | Sum | Int | false |
29+
| Unit | Metric Type | Value Type | Monotonic | Stability |
30+
| ---- | ----------- | ---------- | --------- | --------- |
31+
| 1 | Sum | Int | false | development |
3232

3333
### otelcol_fluent_parse_failures
3434

35-
Number of times Fluent messages failed to be decoded
35+
Number of times Fluent messages failed to be decoded [development]
3636

37-
| Unit | Metric Type | Value Type | Monotonic |
38-
| ---- | ----------- | ---------- | --------- |
39-
| 1 | Sum | Int | false |
37+
| Unit | Metric Type | Value Type | Monotonic | Stability |
38+
| ---- | ----------- | ---------- | --------- | --------- |
39+
| 1 | Sum | Int | false | development |
4040

4141
### otelcol_fluent_records_generated
4242

43-
Number of log records generated from Fluent forward input
43+
Number of log records generated from Fluent forward input [development]
4444

45-
| Unit | Metric Type | Value Type | Monotonic |
46-
| ---- | ----------- | ---------- | --------- |
47-
| 1 | Sum | Int | false |
45+
| Unit | Metric Type | Value Type | Monotonic | Stability |
46+
| ---- | ----------- | ---------- | --------- | --------- |
47+
| 1 | Sum | Int | false | development |

receiver/fluentforwardreceiver/internal/metadata/generated_telemetry.go

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

receiver/fluentforwardreceiver/internal/metadatatest/generated_telemetrytest.go

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

receiver/fluentforwardreceiver/metadata.yaml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,34 +16,44 @@ telemetry:
1616
fluent_closed_connections:
1717
enabled: true
1818
description: Number of connections closed to the fluentforward receiver
19+
stability:
20+
level: development
1921
unit: "1"
2022
sum:
2123
value_type: int
2224
monotonic:
2325
fluent_events_parsed:
2426
enabled: true
2527
description: Number of Fluent events parsed successfully
28+
stability:
29+
level: development
2630
unit: "1"
2731
sum:
2832
value_type: int
2933
monotonic:
3034
fluent_opened_connections:
3135
enabled: true
3236
description: Number of connections opened to the fluentforward receiver
37+
stability:
38+
level: development
3339
unit: "1"
3440
sum:
3541
value_type: int
3642
monotonic:
3743
fluent_parse_failures:
3844
enabled: true
3945
description: Number of times Fluent messages failed to be decoded
46+
stability:
47+
level: development
4048
unit: "1"
4149
sum:
4250
value_type: int
4351
monotonic:
4452
fluent_records_generated:
4553
enabled: true
4654
description: Number of log records generated from Fluent forward input
55+
stability:
56+
level: development
4757
unit: "1"
4858
sum:
4959
value_type: int

0 commit comments

Comments
 (0)