File tree Expand file tree Collapse file tree 1 file changed +16
-0
lines changed
detectors/node/opentelemetry-resource-detector-gcp Expand file tree Collapse file tree 1 file changed +16
-0
lines changed Original file line number Diff line number Diff line change @@ -27,6 +27,22 @@ const resource = await detectResources({
27
27
const tracerProvider = new NodeTracerProvider ({ resource });
28
28
```
29
29
30
+ ## Available detectors
31
+
32
+ ### GCP Detector
33
+
34
+ | Resource Attribute | Description |
35
+ | -------------------------| ---------------------------------------------------------------|
36
+ | cloud.account.id | Value of ` project-id ` from GCP Metadata project |
37
+ | cloud.availability_zone | Value of ` zone ` from GCP Metadata instance |
38
+ | cloud.provider | The cloud provider. In this context, it's always "gcp" |
39
+ | container.name | Value of Environment Variable ` CONTAINER_NAME ` |
40
+ | host.id | Value of ` id ` from GCP Metadata instance |
41
+ | host.name | Value of ` hostname ` from GCP Metadata instance |
42
+ | k8s.cluster.name | Value of ` attributes/cluster-name ` from GCP Metadata instance |
43
+ | k8s.namespace.name | Value of Environment Variable ` NAMESPACE ` |
44
+ | k8s.pod.name | Value of Environment Variable ` HOSTNAME ` |
45
+
30
46
## Useful links
31
47
32
48
- [ GCP Metadata Documentation] [ ]
You can’t perform that action at this time.
0 commit comments