forked from open-telemetry/opentelemetry-collector
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[chore] use mdatagen for receiverhelper metrics (open-telemetry#10123)
Signed-off-by: Alex Boten <[email protected]>
- Loading branch information
1 parent
899b237
commit 251542a
Showing
5 changed files
with
218 additions
and
79 deletions.
There are no files selected for viewing
3 changes: 1 addition & 2 deletions
3
receiver/receiverhelper/package_test.go → .../receiverhelper/generated_package_test.go
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
79 changes: 79 additions & 0 deletions
79
receiver/receiverhelper/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.
63 changes: 63 additions & 0 deletions
63
receiver/receiverhelper/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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,57 @@ | ||
type: receiverhelper | ||
|
||
status: | ||
class: pkg | ||
stability: | ||
beta: [traces, metrics, logs] | ||
distributions: [core, contrib] | ||
|
||
telemetry: | ||
metrics: | ||
receiver_accepted_spans: | ||
enabled: true | ||
description: Number of spans successfully pushed into the pipeline. | ||
unit: 1 | ||
sum: | ||
value_type: int | ||
monotonic: true | ||
|
||
receiver_refused_spans: | ||
enabled: true | ||
description: Number of spans that could not be pushed into the pipeline. | ||
unit: 1 | ||
sum: | ||
value_type: int | ||
monotonic: true | ||
|
||
receiver_accepted_metric_points: | ||
enabled: true | ||
description: Number of metric points successfully pushed into the pipeline. | ||
unit: 1 | ||
sum: | ||
value_type: int | ||
monotonic: true | ||
|
||
receiver_refused_metric_points: | ||
enabled: true | ||
description: Number of metric points that could not be pushed into the pipeline. | ||
unit: 1 | ||
sum: | ||
value_type: int | ||
monotonic: true | ||
|
||
receiver_accepted_log_records: | ||
enabled: true | ||
description: Number of log records successfully pushed into the pipeline. | ||
unit: 1 | ||
sum: | ||
value_type: int | ||
monotonic: true | ||
|
||
receiver_refused_log_records: | ||
enabled: true | ||
description: Number of log records that could not be pushed into the pipeline. | ||
unit: 1 | ||
sum: | ||
value_type: int | ||
monotonic: true |
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