Resource Detection

Description

The resource detection processor can be used to detect resource information from the host, in a format that conforms to the OpenTelemetry resource semantic conventions, and append or override the resource value in telemetry data with this information.

Supported Types

MetricsLogsTraces

Configuration Table

FieldDescription
DetectorDetector to use for resource detection.
Hostname SourceSpecifies the source used to detect the system hostname, when the "system" detector is used.
OverrideWhether or not to overwrite existing resource attributes.
TimeoutTime duration after which a resource detector request will timeout.

Example Configuration

Amazon EC2

In this example, the Resource Detection Processor is configured to use the EC2 detector.

resource-detection-1 resource-detection-2

Google Compute Engine (GCE)

In this example, the Resource Detection Processor is configured to use the GCP detector to detect GCE resource attributes.

resource-detection-3 resource-detection-4

Azure Compute Instance

In this example, the Resource Detection Processor is configured to use the Azure detector to detect Azure Virtual Machine resource attributes.

resource-detection-5 resource-detection-6

Kubernetes

The Resource Detection Processor can detect Kubernetes resources on the following platforms: GKE.

note

Amazon EKS and Azure AKS support is coming soon.

Using the GCP detector, you can detect cloud-based Kubernetes resources.

resource-detection-7 resource-detection-8