You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
[cmd/mdatagen] Add extended type aliases for configuration schema (#15514)
<!--Ex. Fixing a bug - Describe the bug and how this fixes the issue.
Ex. Adding a feature - Explain what this achieves.-->
#### Description
Adds first-class extended type aliases to cmd/mdatagen, so
`metadata.yaml` authors can write a Go-idiomatic type name directly as
the type field of a config property, instead of combining `type` +
`format` or `type` + `x-customType` by hand.
<!-- Issue number if applicable -->
#### Link to tracking issue
Fixes#15513
<!--Describe what testing was performed and which tests were added.-->
#### Testing
- Sample components extended with examples
- Changes covered with unit tests
<!--Describe the documentation added.-->
#### Documentation
Extended README of mdatagen with info about usage of extended types and
how to add new.
<!--Authorship attestation. See AGENTS.md for details. AI agents must
not check this box on behalf
of the user; the human author must check it themselves before the PR is
ready for review.-->
#### Authorship
- [x] I, a human, wrote this pull request description myself.
<!--Please delete paragraphs that you did not use before submitting.-->
|`api_token`| string || no | API token used to authenticate with the endpoint. |
38
+
|`component_id`| string || no | Component ID used to identify this receiver instance. |
37
39
|`endpoint`| string | localhost:12345 |**yes**| The endpoint to scrape metrics from. |
40
+
|`headers`| map[string]string || no | Extra HTTP headers to attach to each request. |
41
+
|`max_results`| int | 100 | no | Maximum number of results to return per scrape. |
38
42
|`metrics`| object (see [metrics](#metrics)) || no | MetricsConfig provides config for sample metrics. |
39
43
|`resource_attributes`| object (see [resource_attributes](#resource_attributes)) || no | ResourceAttributesConfig provides config for sample resource attributes. |
40
44
|`sample_pkg`| object (see [sample_pkg](#sample_pkg)) || no ||
0 commit comments