-
Notifications
You must be signed in to change notification settings - Fork 2.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Scrapers: separate resource attributes in metadata.yaml #7301
Comments
@djaglowski @bogdandrutu please let me know what do you think |
This all makes sense to me. One nit - I would support |
This issue has been inactive for 60 days. It will be closed in 60 days if there is no activity. To ping code owners by adding a component label, see Adding Labels via Comments, or if you are unsure of which component this issue relates to, please ping Pinging code owners:
See Adding Labels via Comments if you do not have permissions to add labels yourself. |
This issue has been inactive for 60 days. It will be closed in 60 days if there is no activity. To ping code owners by adding a component label, see Adding Labels via Comments, or if you are unsure of which component this issue relates to, please ping Pinging code owners:
See Adding Labels via Comments if you do not have permissions to add labels yourself. |
This issue has been inactive for 60 days. It will be closed in 60 days if there is no activity. To ping code owners by adding a component label, see Adding Labels via Comments, or if you are unsure of which component this issue relates to, please ping Pinging code owners:
See Adding Labels via Comments if you do not have permissions to add labels yourself. |
This issue has been inactive for 60 days. It will be closed in 60 days if there is no activity. To ping code owners by adding a component label, see Adding Labels via Comments, or if you are unsure of which component this issue relates to, please ping Pinging code owners:
See Adding Labels via Comments if you do not have permissions to add labels yourself. |
This issue has been inactive for 60 days. It will be closed in 60 days if there is no activity. To ping code owners by adding a component label, see Adding Labels via Comments, or if you are unsure of which component this issue relates to, please ping Pinging code owners:
See Adding Labels via Comments if you do not have permissions to add labels yourself. |
Problem
Currently
attributes
fields in metadata.yaml sometimes are used for both metric and resource attributes. Some scrapers don't specify resource attributes in metadata.yaml, but use resource attribute "hardcoded" in scraper code instead. We need to establish an approach and probably separate the resource attributes from other metric attributes.Proposal
We can introduce another field in metadata.yaml to specify resource attributes. mdatagen should generate them into a new struct variable
ResourceAttributes
with aliasRA
keeping existingAttributes
withA
alias for metric attributes.The field can be added to the metadata.yaml in the following format:
Besides generating
ResourceAttributes
struct that should be used in scraper code, the updated the newresource_attributes
field should be used to generate additional documentation for the scraper. Potentially, ifresource_attributes::semconv
is set in metadata.yaml, we can also parse the semconv docstrings and auto-generate metric documentation from auto-generated semconv code :)Action items:
The text was updated successfully, but these errors were encountered: