You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Oct 3, 2023. It is now read-only.
Add a list of standard supported resources. (#235)
* Add a list of standard supported resources.
* Refactor the standard resources to be more generic.
* Fix typo.
* Fix comments, add links to merge.
* Add a todo about optional vs required.
* Remove host.ip.
* Add examples, remove data-center.
* Fix zone vs availability zone.
* Update resource keys schema, respond to comments.
Resources defining a deployment service (e.g. Kubernetes).
42
+
43
+
### Kubernetes
44
+
**type:**`k8s`
45
+
46
+
**Description:** A Kubernetes resource. This resource can be [merged](Resource.md#Merging) with
47
+
a compute instance resource, and/or an environment resource.
48
+
49
+
| Label | Description | Example |
50
+
|---|---|---|
51
+
| k8s.cluster.name | The name of the cluster that the pod is running in. |`opencensus-cluster`|
52
+
| k8s.namespace.name | The name of the namespace that the pod is running in. |`default`|
53
+
| k8s.pod.name | The name of the pod. |`opencensus-pod-autoconf`|
54
+
55
+
## Compute Instance
56
+
Resources defining a computing instance (e.g. host).
57
+
58
+
### Host
59
+
**type:**`host`
60
+
61
+
**Description:** A host is defined as a general computing instance. This resource should be
62
+
[merged](Resource.md#Merging) with an environment resource.
63
+
64
+
65
+
| Label | Description | Example |
66
+
|---|---|---|
67
+
| host.hostname | Hostname of the host.<br/> It contains what the `hostname` command returns on the host machine. |`opencensus-test`|
68
+
| host.id | Unique host id.<br/> For Cloud this must be the instance_id assigned by the cloud provider |`opencensus-test`|
69
+
| host.name | Name of the host.<br/> It may contain what `hostname` returns on Unix systems, the fully qualified, or a name specified by the user. |`opencensus-test`|
70
+
| host.type | Type of host.<br/> For Cloud this must be the machine type.|`n1-standard-1`|
71
+
72
+
## Environment
73
+
74
+
Resources defining a running environment (e.g. Cloud, Data Center).
75
+
76
+
### Cloud
77
+
**type:**`cloud`
78
+
79
+
**Description:** A cloud infrastructure (e.g. GCP, Azure, AWS).
80
+
81
+
| Label | Description | Example |
82
+
|---|---|---|
83
+
| cloud.provider | Name of the cloud provider.<br/> Example values are aws, azure, gcp. |`gcp`|
84
+
| cloud.account.id | The cloud account id used to identify different entities. |`opencensus`|
85
+
| cloud.region | A specific geographical location where different entities can run |`us-central1`|
86
+
| cloud.zone | Zones are a sub set of the region connected through low-latency links.<br/> In aws it is called availability-zone. |`us-central1-a`|
0 commit comments