elastic / apm-data

apm-data holds definitions and code for manipulating Elastic APM data
Apache License 2.0
12 stars 25 forks source link

Remap OTel hostmetrics to Elastic metrics #277

Closed lahsivjar closed 3 months ago

lahsivjar commented 4 months ago

The PR uses the library opentelemetry-lib to remap metrics produced by hostmetricsreceiver to Elastic metrics that could power the curated UIs.

Example OTel collector configuration required to get the remapping working ```yaml receivers: hostmetrics: collection_interval: 10s scrapers: load: cpu: metrics: system.cpu.utilization: enabled: true system.cpu.logical.count: enabled: true memory: metrics: system.memory.utilization: enabled: true network: process: metrics: process.threads: enabled: true process.open_file_descriptors: enabled: true process.memory.utilization: enabled: true process.disk.operations: enabled: true processes: exporters: otlphttp: endpoint: http://192.168.0.44:8200 tls: insecure: true debug: verbosity: detailed processors: resourcedetection/system: detectors: ["system"] system: hostname_sources: ["os"] service: pipelines: metrics: receivers: [hostmetrics] processors: [resourcedetection/system] exporters: [otlphttp, debug] ```

Related issues