-
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
feat: add huaweicloud metadata support. #27607
Conversation
💚 CLA has been signed |
💚 Build Succeeded
Expand to view the summary
Build stats
Test stats 🧪
Trends 🧪💚 Flaky test reportTests succeeded. Expand to view the summary
Test stats 🧪
|
I signed it! |
Pinging @elastic/integrations (Team:Integrations) |
/test |
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.
Hey @Colstuwjx,
Thanks for your contribution! Code-wise it looks good to me, but could you please add a changelog entry in CHANGELOG.next.asciidoc
?
@kaiyan-sheng could you please also have a second look?
Code looks good to me too. One question, @jsoriano should Huawei be enabled by default? I remember we have to disable Alibaba Cloud and Tencent cloud providers because they require to access a remote host. |
This provider gets the data from 169.254.169.254, as for AWS, Azure or GCP, so I guess that it can be enabled by default. |
This pull request is now in conflicts. Could you fix it? 🙏
|
I have added it, this would be ready to merge. |
Signed-off-by: colstuwjx <[email protected]>
HuaweiCloud is similar to openstack, it's using 169.254.169.254, which should be local call, so I think it's ok to enable by default. I've been rebased with master! Now I think it's ready to merge! |
454419e
to
a3f2809
Compare
Fixed a rebase issue, the PR commits are clear right now. |
/test |
This pull request is now in conflicts. Could you fix it? 🙏
|
@jsoriano @kaiyan-sheng Anything updates? If there is any issue left, please let me know. |
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.
Signed-off-by: colstuwjx <[email protected]> Co-authored-by: Jaime Soriano Pastor <[email protected]> (cherry picked from commit 86004dd)
* feat: add huaweicloud metadata support. (#27607) Signed-off-by: colstuwjx <[email protected]> Co-authored-by: Jaime Soriano Pastor <[email protected]> (cherry picked from commit 86004dd) * Update CHANGELOG.next.asciidoc Co-authored-by: Jacky Wu <[email protected]> Co-authored-by: kaiyan-sheng <[email protected]>
Signed-off-by: colstuwjx <[email protected]> Co-authored-by: Jaime Soriano Pastor <[email protected]>
* Remove huaweicloud - revert #27607 The huaweicloud is just openstack therefore revert #27607 to fix detection of all public and private openstack installations. * make huawei an alias for openstack * change doc * Update CHANGELOG.next.asciidoc --------- Co-authored-by: kaiyan-sheng <[email protected]>
* Remove huaweicloud - revert #27607 The huaweicloud is just openstack therefore revert #27607 to fix detection of all public and private openstack installations. * make huawei an alias for openstack * change doc * Update CHANGELOG.next.asciidoc --------- Co-authored-by: kaiyan-sheng <[email protected]> (cherry picked from commit 07c559b) # Conflicts: # libbeat/processors/add_cloud_metadata/docs/add_cloud_metadata.asciidoc # libbeat/processors/add_cloud_metadata/provider_huawei_cloud.go # libbeat/processors/add_cloud_metadata/provider_huawei_cloud_test.go # libbeat/processors/add_cloud_metadata/providers.go
* Remove huaweicloud - revert #27607 The huaweicloud is just openstack therefore revert #27607 to fix detection of all public and private openstack installations. * make huawei an alias for openstack * change doc * Update CHANGELOG.next.asciidoc --------- Co-authored-by: kaiyan-sheng <[email protected]> (cherry picked from commit 07c559b)
* Remove huaweicloud - revert #27607 (#35184) * Remove huaweicloud - revert #27607 The huaweicloud is just openstack therefore revert #27607 to fix detection of all public and private openstack installations. * make huawei an alias for openstack * change doc * Update CHANGELOG.next.asciidoc --------- Co-authored-by: kaiyan-sheng <[email protected]> (cherry picked from commit 07c559b) * Update CHANGELOG.next.asciidoc * fix footnote --------- Co-authored-by: Maximilian Stinsky <[email protected]> Co-authored-by: kaiyan-sheng <[email protected]>
* Remove huaweicloud - revert #27607 (#35184) * Remove huaweicloud - revert #27607 The huaweicloud is just openstack therefore revert #27607 to fix detection of all public and private openstack installations. * make huawei an alias for openstack * change doc * Update CHANGELOG.next.asciidoc --------- Co-authored-by: kaiyan-sheng <[email protected]> (cherry picked from commit 07c559b) # Conflicts: # libbeat/processors/add_cloud_metadata/docs/add_cloud_metadata.asciidoc # libbeat/processors/add_cloud_metadata/provider_huawei_cloud.go # libbeat/processors/add_cloud_metadata/provider_huawei_cloud_test.go # libbeat/processors/add_cloud_metadata/providers.go * Update CHANGELOG.next.asciidoc * Update add_cloud_metadata.asciidoc * Update providers.go * fix doc * fix lint --------- Co-authored-by: Maximilian Stinsky <[email protected]> Co-authored-by: kaiyan-sheng <[email protected]>
* Remove huaweicloud - revert elastic#27607 The huaweicloud is just openstack therefore revert elastic#27607 to fix detection of all public and private openstack installations. * make huawei an alias for openstack * change doc * Update CHANGELOG.next.asciidoc --------- Co-authored-by: kaiyan-sheng <[email protected]>
Signed-off-by: colstuwjx [email protected]
What does this PR do?
This PR is going to add Huawei cloud metadata provider support.
Why is it important?
There are lots of company are using huaweicloud ecs, and this PR will help them collect ECS level metadata.
Checklist
CHANGELOG.next.asciidoc
orCHANGELOG-developer.next.asciidoc
.Author's Checklist
How to test this PR locally
Related issues
Use cases
Screenshots
Logs