-
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.
[processor/deltatocumulative]: mdatagen telemetry (#33981)
Uses recently introduced `telemetry:` feature of `mdatagen` to define the internal telemetry exported from this component. Leaves the general `telemetry` package in-place, as it also does error handling (for now). Changing so requires a deeper refactor that will be done later Fixes #33573 **Documentation:** changed to auto-generated
- Loading branch information
Showing
12 changed files
with
330 additions
and
105 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
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,63 @@ | ||
[comment]: <> (Code generated by mdatagen. DO NOT EDIT.) | ||
|
||
# deltatocumulative | ||
|
||
## Internal Telemetry | ||
|
||
The following telemetry is emitted by this component. | ||
|
||
### otelcol_deltatocumulative.datapoints.dropped | ||
|
||
number of datapoints dropped due to given 'reason' | ||
|
||
| Unit | Metric Type | Value Type | Monotonic | | ||
| ---- | ----------- | ---------- | --------- | | ||
| {datapoint} | Sum | Int | true | | ||
|
||
### otelcol_deltatocumulative.datapoints.processed | ||
|
||
number of datapoints processed | ||
|
||
| Unit | Metric Type | Value Type | Monotonic | | ||
| ---- | ----------- | ---------- | --------- | | ||
| {datapoint} | Sum | Int | true | | ||
|
||
### otelcol_deltatocumulative.gaps.length | ||
|
||
total duration where data was expected but not received | ||
|
||
| Unit | Metric Type | Value Type | Monotonic | | ||
| ---- | ----------- | ---------- | --------- | | ||
| s | Sum | Int | true | | ||
|
||
### otelcol_deltatocumulative.streams.evicted | ||
|
||
number of streams evicted | ||
|
||
| Unit | Metric Type | Value Type | Monotonic | | ||
| ---- | ----------- | ---------- | --------- | | ||
| {stream} | Sum | Int | true | | ||
|
||
### otelcol_deltatocumulative.streams.limit | ||
|
||
upper limit of tracked streams | ||
|
||
| Unit | Metric Type | Value Type | | ||
| ---- | ----------- | ---------- | | ||
| {stream} | Gauge | Int | | ||
|
||
### otelcol_deltatocumulative.streams.max_stale | ||
|
||
duration after which streams inactive streams are dropped | ||
|
||
| Unit | Metric Type | Value Type | | ||
| ---- | ----------- | ---------- | | ||
| s | Gauge | Int | | ||
|
||
### otelcol_deltatocumulative.streams.tracked | ||
|
||
number of streams tracked | ||
|
||
| Unit | Metric Type | Value Type | Monotonic | | ||
| ---- | ----------- | ---------- | --------- | | ||
| {dps} | Sum | Int | false | |
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
76 changes: 76 additions & 0 deletions
76
processor/deltatocumulativeprocessor/generated_component_telemetry_test.go
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
89 changes: 88 additions & 1 deletion
89
processor/deltatocumulativeprocessor/internal/metadata/generated_telemetry.go
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
13 changes: 13 additions & 0 deletions
13
processor/deltatocumulativeprocessor/internal/metadata/generated_telemetry_test.go
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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
Oops, something went wrong.