Skip to content
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 support for detecting GCE VMs in Managed Instance Groups #36142

Merged
merged 12 commits into from
Jan 25, 2025

Conversation

quentinmit
Copy link
Contributor

Description

This adds resource detection for the GCE "instance group manager" that created an instance, allowing like VMs to be grouped using a resource attribute.

I also have corresponding branches prepared for opentelemetry-go and semantic-conventions

Testing

This PR includes unit tests to validate that the correct resource attributes are added, and I manually tested a collector built with this change on a MIG VM and it generates the expected resource attributes.

Documentation

Documented with the other resource attributes in the existing documentation.

@quentinmit quentinmit requested a review from a team as a code owner November 1, 2024 20:08
@github-actions github-actions bot added the processor/resourcedetection Resource detection processor label Nov 1, 2024
@dashpole
Copy link
Contributor

dashpole commented Nov 1, 2024

I'll be OOO for a few weeks, and might not be able to get to this right away

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.

looks good otherwise

@dashpole
Copy link
Contributor

Looks like this needs a changelog

Copy link
Contributor

github-actions bot commented Dec 4, 2024

This PR was marked stale due to lack of activity. It will be closed in 14 days.

@github-actions github-actions bot added the Stale label Dec 4, 2024
@quentinmit
Copy link
Contributor Author

Not stale, just blocked on the final names for the attributes.

@github-actions github-actions bot removed the Stale label Dec 10, 2024
@quentinmit
Copy link
Contributor Author

Looks like this needs a changelog

Alright, I think the naming is unblocked (we switched to underscores after discussing this at the Entity SIG). PTAL again and thanks!

@dashpole dashpole added the ready to merge Code review completed; ready to merge by maintainers label Jan 6, 2025
@songy23
Copy link
Member

songy23 commented Jan 16, 2025

Please rebase, that should fix CI

@songy23
Copy link
Member

songy23 commented Jan 24, 2025

#37485 hopefully fixes check-links

@songy23 songy23 merged commit 7c32a5d into open-telemetry:main Jan 25, 2025
163 checks passed
@github-actions github-actions bot added this to the next release milestone Jan 25, 2025
chengchuanpeng pushed a commit to chengchuanpeng/opentelemetry-collector-contrib that referenced this pull request Jan 26, 2025
…naged Instance Groups (open-telemetry#36142)

<!--Ex. Fixing a bug - Describe the bug and how this fixes the issue.
Ex. Adding a feature - Explain what this achieves.-->
#### Description
This adds resource detection for the GCE "instance group manager" that
created an instance, allowing like VMs to be grouped using a resource
attribute.

I also have corresponding branches prepared for opentelemetry-go and
semantic-conventions

<!--Describe what testing was performed and which tests were added.-->
#### Testing
This PR includes unit tests to validate that the correct resource
attributes are added, and I manually tested a collector built with this
change on a MIG VM and it generates the expected resource attributes.

<!--Describe the documentation added.-->
#### Documentation
Documented with the other resource attributes in the existing
documentation.

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

---------

Co-authored-by: David Ashpole <[email protected]>
Co-authored-by: Tyler Helmuth <[email protected]>
Co-authored-by: Pablo Baeyens <[email protected]>
Co-authored-by: Antoine Toulme <[email protected]>
Co-authored-by: Yang Song <[email protected]>
Co-authored-by: Sean Marciniak <[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 ready to merge Code review completed; ready to merge by maintainers
Projects
None yet
Development

Successfully merging this pull request may close these issues.

8 participants