mirror of
https://github.com/hanzoai/telemetry.git
synced 2026-10-30 20:01:49 +00:00
<!--Ex. Fixing a bug - Describe the bug and how this fixes the issue. Ex. Adding a feature - Explain what this achieves.--> #### Description Switch `scraper/scraperhelper` `ControllerConfig` to schema-based generated configuration. This adds metadata-driven config generation for the scraper controller settings, publishes the reusable `controller_config` schema from `pkg/scraperhelper`, and updates the mdatagen sample scraper to embed that exported config via schema reference. <!-- Issue number if applicable --> #### Link to tracking issue Fixes #15258 <!--Describe what testing was performed and which tests were added.--> #### Testing Added usage example to `samplescraper` test component. --------- Co-authored-by: Dmitry Anoshin <[email protected]>
51 lines
1.2 KiB
YAML
51 lines
1.2 KiB
YAML
type: scraperhelper
|
|
github_project: open-telemetry/opentelemetry-collector
|
|
|
|
status:
|
|
disable_codecov_badge: true
|
|
class: pkg
|
|
stability:
|
|
beta: [metrics, logs]
|
|
|
|
exported_configs:
|
|
controller_config:
|
|
$ref: ./internal/controller.controller_config
|
|
|
|
telemetry:
|
|
metrics:
|
|
scraper_errored_log_records:
|
|
enabled: true
|
|
stability: alpha
|
|
description: Number of log records that were unable to be scraped.
|
|
unit: "{datapoint}"
|
|
sum:
|
|
value_type: int
|
|
monotonic: true
|
|
|
|
scraper_errored_metric_points:
|
|
enabled: true
|
|
stability: alpha
|
|
description: Number of metric points that were unable to be scraped.
|
|
unit: "{datapoint}"
|
|
sum:
|
|
value_type: int
|
|
monotonic: true
|
|
|
|
scraper_scraped_log_records:
|
|
enabled: true
|
|
stability: alpha
|
|
description: Number of log records successfully scraped.
|
|
unit: "{datapoint}"
|
|
sum:
|
|
value_type: int
|
|
monotonic: true
|
|
|
|
scraper_scraped_metric_points:
|
|
enabled: true
|
|
stability: alpha
|
|
description: Number of metric points successfully scraped.
|
|
unit: "{datapoint}"
|
|
sum:
|
|
value_type: int
|
|
monotonic: true
|