-
Notifications
You must be signed in to change notification settings - Fork 4.9k
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
add_cloud_metadata: env var override for providers #38669
Conversation
This pull request does not have a backport label.
To fixup this pull request, you need to add the backport labels for the needed
|
Add support for configuring the add_cloud_metadata providers with an environment variable, $BEATS_ADD_CLOUD_METADATA_PROVIDERS. This may be useful when deploying Elastic Agent standalone in a cloud provider managed Kubernetes cluster, where the cloud provider is known at deployment time.
fa753f5
to
84efc44
Compare
Pinging @elastic/obs-ds-hosted-services (Team:obs-ds-hosted-services) |
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.
Looks good to me!
* add_cloud_metadata: env var override for providers Add support for configuring the add_cloud_metadata providers with an environment variable, $BEATS_ADD_CLOUD_METADATA_PROVIDERS. This may be useful when deploying Elastic Agent standalone in a cloud provider managed Kubernetes cluster, where the cloud provider is known at deployment time. * Fix changelog * appease golangci-lint * More appeasement (cherry picked from commit d0399e0)
…iders (#38965) * add_cloud_metadata: env var override for providers (#38669) * add_cloud_metadata: env var override for providers Add support for configuring the add_cloud_metadata providers with an environment variable, $BEATS_ADD_CLOUD_METADATA_PROVIDERS. This may be useful when deploying Elastic Agent standalone in a cloud provider managed Kubernetes cluster, where the cloud provider is known at deployment time. * Fix changelog * appease golangci-lint * More appeasement (cherry picked from commit d0399e0) * Update CHANGELOG.next.asciidoc --------- Co-authored-by: Andrew Wilkins <[email protected]>
Proposed commit message
Add support for configuring the add_cloud_metadata providers with an environment variable,
$BEATS_ADD_CLOUD_METADATA_PROVIDERS
. This may be useful when deploying Elastic Agent standalone in a cloud provider (e.g. in a managed Kubernetes cluster), where the cloud provider is known at deployment time.This is intended as a workaround for #13816 and issues like it.
Checklist
- [ ] I have made corresponding change to the default configuration filesCHANGELOG.next.asciidoc
orCHANGELOG-developer.next.asciidoc
.How to test this PR locally
Run Metricbeat enough times on EC2 to trigger #13816, and then check that setting
BEATS_ADD_CLOUD_METADATA_PROVIDERS=ec2
disables the openstack provider and the issue no longer occurs.Related issues
Relates to #13816
Use cases
As a user deploying Elastic Agent standalone on EKS, I want to ensure that documents are enriched with EC2 cloud metadata.
Screenshots
N/A
Logs
N/A