-
Notifications
You must be signed in to change notification settings - Fork 25
Detect aws and gcp clouds in the agent #466
Detect aws and gcp clouds in the agent #466
Conversation
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.
Super cool!
The bare metal variant is missing, yet this is already a great improvement and I think we can add that later.
Shall we track it so we do not forget?
The baremetal thing is a shadowy thing. In our case, baremetal is everything that it is not in the cloud (yes, it is that generic). I don't know what kind of accuracy we need here, but from the beginning, the idea of this field was to detect the cloud itself, and everything that is not in our interest gets out. |
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.
LGTM, the bare metal thing can wait. @nelsonkopliku shall we open an issue for that with a specific question tag?
@arbulu89 I see, let's then discuss with stakeholders
@dottorblaster that can wait indeed, and we already have it tracked in JIRA, so we should be good. |
What about rewording "cloud provider" into "provider"? To be is would still sound correct to say aws/gcp/azure are "providers" (without the cloud word) and anything that is now known for now could be labelled "unknown". Then in the future we could progressively add in new providers like "vmware", "kvm", "dell server", "lenovo server". Not forgetting other cloud providers over time as well. Adding new providers can wait, but I guess we should fix the name of the field soon though. |
@arbulu89 I validated the idea to rewording from "cloud provider" into "provider" as above, which they would like to have to make the field more flexible than cloud only. Can you please update at your convenience. (Sorry, forgot to mention you explicitly in my previous response). |
Of course we can! |
issue collected in trento-project/telemetry#14 |
Add
AWS
andGCP
clouds autodetection in the agent. This data will be used in the server side and sent in telemetry.The code is based on
crmsh
, as we have been refining there (together with the cloud providers themselves) the cloud auto-detection: https://github.com/ClusterLabs/crmsh/blob/master/crmsh/utils.py#L2055This is how it looks like;
![image](https://user-images.githubusercontent.com/36370954/142204967-fe7b9a7d-1342-43a3-97c2-6705dbd7f6f4.png)
![image](https://user-images.githubusercontent.com/36370954/142204976-050f85d7-7f4d-4cec-bd92-ea679f095633.png)
AWS:
GCP:
![image](https://user-images.githubusercontent.com/36370954/142204988-7db9fa24-a992-45d9-ac28-eefbe988c732.png)
![image](https://user-images.githubusercontent.com/36370954/142205001-8569b3d1-b9d7-48c8-bc8e-3be77f9515ed.png)