Skip to content

Commit ee3ed25

Browse files
committed
Add GCP Compute Engine resource attributes for host/instance
1 parent 7c60685 commit ee3ed25

File tree

2 files changed

+34
-0
lines changed
  • semantic_conventions/resource/cloud_provider/gcp
  • specification/resource/semantic_conventions/cloud_provider/gcp

2 files changed

+34
-0
lines changed
Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
groups:
2+
- id: gcp.gce
3+
prefix: gcp.gce
4+
type: resource
5+
brief: >
6+
Resources used by Google Compute Engine (GCE).
7+
attributes:
8+
- id: instance.name
9+
type: string
10+
brief: >
11+
The instance name of a GCE instance. This is the value
12+
provided by `host.name`, the visible name of the instance in
13+
the Cloud Console UI, and the prefix for the default
14+
hostname of the instance as defined by the [default internal
15+
DNS
16+
name](https://cloud.google.com/compute/docs/internal-dns#instance-fully-qualified-domain-names).
17+
examples: ['instance-1', 'my-vm-name']
18+
- id: instance.hostname
19+
type: string
20+
brief: >
21+
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).
22+
examples: ['my-host1234.example.com', 'sample-vm.us-west1-b.c.my-project.internal']
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
# Google Compute Engine
2+
3+
**Type:** `gcp.gce`
4+
5+
**Description:** Resource attributes for GCE instances.
6+
7+
<!-- semconv gcp.gce -->
8+
| Attribute | Type | Description | Examples | Requirement Level |
9+
|---|---|---|---|---|
10+
| `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 |
11+
| `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 |
12+
<!-- endsemconv -->

0 commit comments

Comments
 (0)