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
Copy file name to clipboardExpand all lines: processor/resourcedetectionprocessor/README.md
+20-3Lines changed: 20 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -318,9 +318,6 @@ processors:
318
318
* cloud.platform ("aws_eks")
319
319
* k8s.cluster.name
320
320
321
-
Note: The kubernetes cluster name is only available when running on EC2 instances, and requires permission to run the `EC2:DescribeInstances` [action](https://docs.aws.amazon.com/AWSEC2/latest/APIReference/API_DescribeInstances.html).
322
-
If you see an error with the message `context deadline exceeded`, please increase the timeout setting in your config.
323
-
324
321
Example:
325
322
326
323
```yaml
@@ -331,6 +328,26 @@ processors:
331
328
override: false
332
329
```
333
330
331
+
#### Cluster Name
332
+
333
+
Cluster name detection is disabled by default, and can be enabled with the
334
+
following configuration:
335
+
336
+
```yaml
337
+
processors:
338
+
resourcedetection/eks:
339
+
detectors: [env, eks]
340
+
timeout: 15s
341
+
override: false
342
+
eks:
343
+
resource_attributes:
344
+
k8s.cluster.name:
345
+
enabled: true
346
+
```
347
+
348
+
Note: The kubernetes cluster name is only available when running on EC2 instances, and requires permission to run the `EC2:DescribeInstances` [action](https://docs.aws.amazon.com/AWSEC2/latest/APIReference/API_DescribeInstances.html).
349
+
If you see an error with the message `context deadline exceeded`, please increase the timeout setting in your config.
350
+
334
351
### AWS Lambda
335
352
336
353
Uses the AWS Lambda [runtime environment variables](https://docs.aws.amazon.com/lambda/latest/dg/configuration-envvars.html#configuration-envvars-runtime)
0 commit comments