Quick Guide for OTel Agent on Host Platforms for Metrics

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:
metrics_endpoint: https://<REPLACE WITH KFUSE ADDRESS>/ingester/otlp/metrics

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:
metrics:
exporters: [otlphttp]
processors: [batch, resource, resourcedetection]
receivers: [otlp]
yaml

For additional information, see OpenTelemetry Collector on a Host Environment.

To track runtime metrics, review OpenTelemetry Runtime Metrics.