Quick Guide for OTel Agent on Host Platforms for Traces
For information on installing OpenTelemetry Collector in a Host environment, such as Bare Metal or a VM instance, see Linux installation instructions.
Use the following sample file to configure the OpenTelemetry Collector to export logs, metrics, and traces to Kloudfuse.
You must supply the resource attribute kf_platform with value host.
receivers:
otlp:
protocols:
grpc:
http:
cors:
allowed_origins:
- "http://*"
- "https://*"
exporters:
otlphttp:
traces_endpoint: https://<REPLACE WITH KFUSE ADDRESS>/ingester/otlp/traces
processors:
batch:
timeout: 10s
resource:
attributes:
- key: kf_platform
value: "host"
action: upsert
resourcedetection:
detectors:
- env
- system
- ec2
- gcp
- azure
override: true
timeout: 2s
connectors:
spanmetrics:
service:
pipelines:
traces:
receivers: [otlp]
processors: [batch, resource, resourcedetection]
exporters: [otlphttp]
yaml
For additional information, see OpenTelemetry Collector on a Host Environment.
To track runtime metrics, review OpenTelemetry Runtime Metrics.