-
Notifications
You must be signed in to change notification settings - Fork 2.8k
[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
[processor/resourcedetection] Add Dynatrace resource detector #37766
Conversation
Signed-off-by: Florian Bacher <[email protected]>
Signed-off-by: Florian Bacher <[email protected]>
Signed-off-by: Florian Bacher <[email protected]>
Signed-off-by: Florian Bacher <[email protected]>
Signed-off-by: Florian Bacher <[email protected]>
Signed-off-by: Florian Bacher <[email protected]>
Signed-off-by: Florian Bacher <[email protected]>
Signed-off-by: Florian Bacher <[email protected]>
Signed-off-by: Florian Bacher <[email protected]>
Signed-off-by: Florian Bacher <[email protected]>
Signed-off-by: Florian Bacher <[email protected]>
Signed-off-by: Florian Bacher <[email protected]>
Signed-off-by: Florian Bacher <[email protected]>
This should be ready for review now - not sure about the codeowners check, but i think this might be unrelated to this PR |
There was a problem hiding this 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.
processor/resourcedetectionprocessor/internal/dynatrace/dynatrace.go
Outdated
Show resolved
Hide resolved
Signed-off-by: Florian Bacher <[email protected]>
Signed-off-by: Florian Bacher <[email protected]>
processor/resourcedetectionprocessor/internal/dynatrace/metadata.yaml
Outdated
Show resolved
Hide resolved
processor/resourcedetectionprocessor/internal/dynatrace/dynatrace.go
Outdated
Show resolved
Hide resolved
Signed-off-by: Florian Bacher <[email protected]>
Signed-off-by: Florian Bacher <[email protected]>
Signed-off-by: Florian Bacher <[email protected]>
…on-host-name-only' into feat/37577/dt-resource-detection-host-name-only
Signed-off-by: Florian Bacher <[email protected]>
Signed-off-by: Florian Bacher <[email protected]>
Signed-off-by: Florian Bacher <[email protected]>
Signed-off-by: Florian Bacher <[email protected]>
…rce-detection-host-name-only
…rce-detection-host-name-only
Thank you for all the help @dashpole! |
…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]>
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 inthe
/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