-
Notifications
You must be signed in to change notification settings - Fork 889
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add semantic conventions for GCP resources
- Loading branch information
Showing
5 changed files
with
47 additions
and
1 deletion.
There are no files selected for viewing
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
groups: | ||
- id: gcp.gce | ||
prefix: gcp.gce | ||
type: resource | ||
brief: > | ||
Resources used by Google Compute Engine (GCE). | ||
attributes: | ||
- id: instance.name | ||
type: string | ||
brief: > | ||
The instance name of a GCE instance. This is the value | ||
provided by `host.name`, the visible name of the instance in | ||
the Cloud Console UI, and the prefix for the default | ||
hostname of the instance as defined by the [default internal | ||
DNS | ||
name](https://cloud.google.com/compute/docs/internal-dns#instance-fully-qualified-domain-names). | ||
examples: ['instance-1', 'my-vm-name'] | ||
- id: instance.hostname | ||
type: string | ||
brief: > | ||
The hostname of a GCE instance. This is the full value of the default or [custom hostname](https://cloud.google.com/compute/docs/instances/custom-hostname-vm). | ||
examples: ['my-host1234.example.com', 'sample-vm.us-west1-b.c.my-project.internal'] |
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
10 changes: 10 additions & 0 deletions
10
specification/resource/semantic_conventions/cloud_provider/gcp/README.md
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
# GCP Semantic Conventions | ||
|
||
This directory defines standards for resource attributes that only apply to | ||
Google Cloud Platform (GCP). If an attribute could apply to resources from more than one cloud | ||
provider (like account ID, operating system, etc), it belongs in the parent | ||
`semantic_conventions` directory. | ||
|
||
## Services | ||
|
||
- [Google Compute Engine](./gce.md) |
12 changes: 12 additions & 0 deletions
12
specification/resource/semantic_conventions/cloud_provider/gcp/gce.md
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
# Google Compute Engine | ||
|
||
**Type:** `gcp.gce` | ||
|
||
**Description:** Resource attributes for GCE instances. | ||
|
||
<!-- semconv gcp.gce --> | ||
| Attribute | Type | Description | Examples | Requirement Level | | ||
|---|---|---|---|---| | ||
| `gcp.gce.instance.name` | string | The instance name of a GCE instance. This is the value provided by `host.name`, the visible name of the instance in the Cloud Console UI, and the prefix for the default hostname of the instance as defined by the [default internal DNS name](https://cloud.google.com/compute/docs/internal-dns#instance-fully-qualified-domain-names). | `instance-1`; `my-vm-name` | Recommended | | ||
| `gcp.gce.instance.hostname` | string | The hostname of a GCE instance. This is the full value of the default or [custom hostname](https://cloud.google.com/compute/docs/instances/custom-hostname-vm). | `my-host1234.example.com`; `sample-vm.us-west1-b.c.my-project.internal` | Recommended | | ||
<!-- endsemconv --> |