-
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
[processor/resourcedetection] Additional system attributes #22045
Comments
Pinging code owners for processor/resourcedetection: @Aneurysm9 @dashpole. See Adding Labels via Comments if you do not have permissions to add labels yourself. |
Pinging code owners:
See Adding Labels via Comments if you do not have permissions to add labels yourself. |
I don't think these attributes suffer from the same issues as I am also undecided on whether they should be optional or not; I am not against making them optional but I think we should understand why we want to make them optional (specially considering the precedent on the resource detection processor which has historically been "just add everything as enabled by default") |
Enabling all the attributes significantly increases the payload for the users that enable the Also, I think all of them should be defined in the spec. Anything that is not defined there yet, should be optional to avoid future breaking changes in future. Once it's there, we can align default/optional with the spec's required/recommended. |
I agree in the abstract but I am not sure what criteria we should use for this. One possibility is to use the 'Requirement Level' as a guide for this, so, e.g.,
That's a good point. All the conventions listed here are either on the OTel spec or on the ECS spec, but I guess since they have not been formally merged, we should make those that come from ECS optional for now 👍 I also want to add some others that are not on either spec, so it will be useful for those as well. |
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. |
**Description:** Adds support for `host.mac` detection to the `system` detector on the resource detection processor. This convention is defined in the specification [on the host document](https://github.com/open-telemetry/semantic-conventions/blob/v1.23.1/docs/resource/host.md). **Link to tracking Issue:** Fixes #29587 and therefore fixes #22045 **Testing:** Unit tests; manually Tested on my laptop with the following configuration: ``` receivers: hostmetrics: collection_interval: 10s scrapers: load: processors: resourcedetection: detectors: ["system"] system: resource_attributes: host.mac: enabled: true exporters: debug: verbosity: detailed service: pipelines: metrics: receivers: [hostmetrics] processors: [resourcedetection] exporters: [debug] ``` --------- Co-authored-by: Curtis Robert <[email protected]>
…elemetry#29588) **Description:** Adds support for `host.mac` detection to the `system` detector on the resource detection processor. This convention is defined in the specification [on the host document](https://github.com/open-telemetry/semantic-conventions/blob/v1.23.1/docs/resource/host.md). **Link to tracking Issue:** Fixes open-telemetry#29587 and therefore fixes open-telemetry#22045 **Testing:** Unit tests; manually Tested on my laptop with the following configuration: ``` receivers: hostmetrics: collection_interval: 10s scrapers: load: processors: resourcedetection: detectors: ["system"] system: resource_attributes: host.mac: enabled: true exporters: debug: verbosity: detailed service: pipelines: metrics: receivers: [hostmetrics] processors: [resourcedetection] exporters: [debug] ``` --------- Co-authored-by: Curtis Robert <[email protected]>
Component(s)
processor/resourcedetection
Is your feature request related to a problem? Please describe.
I would like to add some additional attributes to be fetched by the system detector. These would provide useful context on the machine that is generating telemetry and would be useful to my vendor for infrastructure monitoring. All of the following are in one of the specs (ECS or OTel's). I will open separate issues for other attributes not in the spec.
Describe the solution you'd like
Add the following
host
oros
attributes:os.description
to system detector #24541host.ip
to system detector #24765host.arch
to system detector #22939host.mac
to system detector #29587Some of these are available in Elastic Common Schema, I will work on the semantic conventions repository to add these before putting them in the
system
detector.Describe alternatives you've considered
We could add these to a different processor or detector, but the system detector seems like the best place to put these.
Additional context
As far as I can tell, no other detector supports these, so there should be no problems similar to #21233, so we can safely add these by default.
The text was updated successfully, but these errors were encountered: