Skip to content

Commit

Permalink
[semantic conventions] add alibaba cloud as a cloud provider
Browse files Browse the repository at this point in the history
  • Loading branch information
legendecas committed Jul 27, 2021
1 parent 3422558 commit 5f0cc9e
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 2 deletions.
9 changes: 9 additions & 0 deletions semantic_conventions/resource/cloud.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,9 @@ groups:
type:
allow_custom_values: true
members:
- id: Aliyun
value: 'aliyun'
brief: 'Alibaba Cloud (Aliyun)'
- id: AWS
value: 'aws'
brief: 'Amazon Web Services'
Expand Down Expand Up @@ -45,6 +48,12 @@ groups:
type:
allow_custom_values: true
members:
- id: aliyun_ecs
value: 'aliyun_ecs'
brief: Aliyun Elastic Compute Service
- id: aliyun_fc
value: 'aliyun_fc'
brief: Aliyun Function Compute
- id: aws_ec2
value: 'aws_ec2'
brief: AWS Elastic Compute Cloud
Expand Down
1 change: 1 addition & 0 deletions specification/resource/semantic_conventions/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -167,6 +167,7 @@ resources can only be defined for providers listed as a valid `cloud.provider` i
[Cloud](./cloud.md) and below. Provider-specific attributes all reside in the `cloud_provider` directory.
Valid cloud providers are:

- [Alibaba Cloud](https://www.alibabacloud.com/) (`aliyun`)
- [Amazon Web Services](https://aws.amazon.com/) ([`aws`](cloud_provider/aws/README.md))
- [Google Cloud Platform](https://cloud.google.com/) (`gcp`)
- [Microsoft Azure](https://azure.microsoft.com/) (`azure`)
7 changes: 5 additions & 2 deletions specification/resource/semantic_conventions/cloud.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,11 @@
<!-- semconv cloud -->
| Attribute | Type | Description | Examples | Required |
|---|---|---|---|---|
| `cloud.provider` | string | Name of the cloud provider. | `aws` | No |
| `cloud.provider` | string | Name of the cloud provider. | `aliyun` | No |
| `cloud.account.id` | string | The cloud account ID the resource is assigned to. | `111111111111`; `opentelemetry` | No |
| `cloud.region` | string | The geographical region the resource is running. Refer to your provider's docs to see the available regions, for example [AWS regions](https://aws.amazon.com/about-aws/global-infrastructure/regions_az/), [Azure regions](https://azure.microsoft.com/en-us/global-infrastructure/geographies/), or [Google Cloud regions](https://cloud.google.com/about/locations). | `us-central1`; `us-east-1` | No |
| `cloud.availability_zone` | string | Cloud regions often have multiple, isolated locations known as zones to increase availability. Availability zone represents the zone where the resource is running. [1] | `us-east-1c` | No |
| `cloud.platform` | string | The cloud platform in use. [2] | `aws_ec2` | No |
| `cloud.platform` | string | The cloud platform in use. [2] | `aliyun_ecs` | No |

**[1]:** Availability zones are called "zones" on Google Cloud.

Expand All @@ -23,6 +23,7 @@

| Value | Description |
|---|---|
| `aliyun` | Alibaba Cloud (Aliyun) |
| `aws` | Amazon Web Services |
| `azure` | Microsoft Azure |
| `gcp` | Google Cloud Platform |
Expand All @@ -31,6 +32,8 @@

| Value | Description |
|---|---|
| `aliyun_ecs` | Aliyun Elastic Compute Service |
| `aliyun_fc` | Aliyun Function Compute |
| `aws_ec2` | AWS Elastic Compute Cloud |
| `aws_ecs` | AWS Elastic Container Service |
| `aws_eks` | AWS Elastic Kubernetes Service |
Expand Down

0 comments on commit 5f0cc9e

Please sign in to comment.