Skip to content

[processor/resourcedetection] Add Dynatrace resource detector #37766

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

Conversation

bacherfl
Copy link
Contributor

@bacherfl bacherfl commented Feb 7, 2025

Description

This PR adds the Dynatrace detector to the resource detection processor.
The Dynatrace detector loads resource information from the dt_host_metadata.properties file which is located in
the /var/lib/dynatrace/enrichment (on *nix systems) or %ProgramData%\dynatrace\enrichment (on Windows) directories.
If present in the file, the following attributes will be added:

  • dt.entity.host
  • host.name

The Dynatrace detector does not require any additional configuration, other than being added to the list of detectors.

Link to tracking issue

Fixes #37577

Testing

Added unit tests

Documentation

Added a description of the detector to the readme

@github-actions github-actions bot added the processor/resourcedetection Resource detection processor label Feb 7, 2025
@bacherfl bacherfl changed the title Feat/37577/dt resource detection host name only [processor/resourcedetection] Add Dynatrace resource detector Feb 7, 2025
@bacherfl
Copy link
Contributor Author

bacherfl commented Feb 7, 2025

This should be ready for review now - not sure about the codeowners check, but i think this might be unrelated to this PR

@bacherfl bacherfl marked this pull request as ready for review February 7, 2025 09:08
@bacherfl bacherfl requested a review from a team as a code owner February 7, 2025 09:08
Copy link
Contributor

@dashpole dashpole left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can you add yourself as a CODEOWNER of the internal/dynatrace directory? It can be helpful to keep a reference for who to contact (since I wouldn't know how to help users that have issues.

@dashpole dashpole added the ready to merge Code review completed; ready to merge by maintainers label Feb 10, 2025
@evan-bradley evan-bradley added the Run Windows Enable running windows test on a PR label Feb 11, 2025
@evan-bradley evan-bradley merged commit e0c6d0e into open-telemetry:main Feb 12, 2025
197 checks passed
@evan-bradley
Copy link
Contributor

Thank you for all the help @dashpole!

@github-actions github-actions bot added this to the next release milestone Feb 12, 2025
khushijain21 pushed a commit to khushijain21/opentelemetry-collector-contrib that referenced this pull request Feb 14, 2025
…elemetry#37766)

<!--Ex. Fixing a bug - Describe the bug and how this fixes the issue.
Ex. Adding a feature - Explain what this achieves.-->
#### Description

This PR adds the Dynatrace detector to the resource detection processor.
The Dynatrace detector loads resource information from the
`dt_host_metadata.properties` file which is located in
the `/var/lib/dynatrace/enrichment` (on *nix systems) or
`%ProgramData%\dynatrace\enrichment` (on Windows) directories.
If present in the file, the following attributes will be added:

- `dt.entity.host`
- `host.name`

The Dynatrace detector does not require any additional configuration,
other than being added to the list of detectors.

<!-- Issue number (e.g. open-telemetry#1234) or full URL to issue, if applicable. -->
#### Link to tracking issue
Fixes open-telemetry#37577

<!--Describe what testing was performed and which tests were added.-->
#### Testing
Added unit tests

<!--Describe the documentation added.-->
#### Documentation
Added a description of the detector to the readme

<!--Please delete paragraphs that you did not use before submitting.-->

---------

Signed-off-by: Florian Bacher <[email protected]>
Co-authored-by: Evan Bradley <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
processor/resourcedetection Resource detection processor Run Windows Enable running windows test on a PR
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[processor/resourcedetection] Proposal to add a Dynatrace resource detector
4 participants