-
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] Add k8s cluster name detection in EKS environment #28649
Merged
dmitryax
merged 11 commits into
open-telemetry:main
from
crobert-1:eks_cluster_name_sdk_v1
Nov 21, 2023
Merged
[processor/resourcedetection] Add k8s cluster name detection in EKS environment #28649
dmitryax
merged 11 commits into
open-telemetry:main
from
crobert-1:eks_cluster_name_sdk_v1
Nov 21, 2023
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Use ec2 instance tags to determine the EKS k8s cluster name.
github-actions
bot
added
the
processor/resourcedetection
Resource detection processor
label
Oct 26, 2023
crobert-1
changed the title
Add k8s cluster name detection in EKS environment
[processor/resourcedetection] Add k8s cluster name detection in EKS environment
Oct 26, 2023
dmitryax
reviewed
Oct 26, 2023
processor/resourcedetectionprocessor/internal/aws/eks/detector.go
Outdated
Show resolved
Hide resolved
processor/resourcedetectionprocessor/internal/aws/eks/detector_test.go
Outdated
Show resolved
Hide resolved
processor/resourcedetectionprocessor/internal/aws/eks/detector.go
Outdated
Show resolved
Hide resolved
- Don't panic on error - Remove unrelated changes - Reuse conventions variable for k8s cluster name
|
dmitryax
approved these changes
Oct 28, 2023
@jinja2 can you please take a look as well? |
dmitryax
reviewed
Oct 31, 2023
jinja2
reviewed
Oct 31, 2023
processor/resourcedetectionprocessor/internal/aws/eks/detector.go
Outdated
Show resolved
Hide resolved
processor/resourcedetectionprocessor/internal/aws/eks/detector.go
Outdated
Show resolved
Hide resolved
processor/resourcedetectionprocessor/internal/aws/eks/detector.go
Outdated
Show resolved
Hide resolved
Co-authored-by: bryan-aguilar <[email protected]>
bryan-aguilar
approved these changes
Nov 10, 2023
jinja2
approved these changes
Nov 20, 2023
RoryCrispin
pushed a commit
to ClickHouse/opentelemetry-collector-contrib
that referenced
this pull request
Nov 24, 2023
…nvironment (open-telemetry#28649) **Description:** This enhancement detects the k8s cluster name in EKS. The solution uses EC2 instance tags to determine the cluster name, which means it will only work on EC2 (as noted in documentation updates). Resolves open-telemetry#26794 --------- Co-authored-by: bryan-aguilar <[email protected]>
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Description:
This enhancement detects the k8s cluster name in EKS. The solution uses EC2 instance tags to determine the cluster name, which means it will only work on EC2 (as noted in documentation updates).
Note: This is the second attempt at adding this functionality, superseding PR #27408. My first attempt was using
v2
of the AWS GO SDK, but theservice/ec2
module was causing lint to hit OOM issues and successful lint runs were taking over half an hour to complete. This usesv1
of the module instead in an attempt to resolve linting issues.Link to tracking Issue:
Resolves #26794
Testing:
Manual testing in an EKS cluster when running on EC2 instances. Added unit tests to cover basic functionality.
Documentation:
Updated README and relevant metadata