Skip to main content

Collect Metrics

The Sumo Logic Distribution for OpenTelemetry Collector provides various receivers for metrics collection. The full list of OpenTelemetry receivers are available on OpenTelemetry collector repository.

To use the receiver, you need to define it in the receivers: section and then use it in the pipeline.

Consider the following example configuration for collecting Host Metrics Source. This configuration can be placed in conf.d directory:

receivers:
hostmetrics/linux/localhost:
scrapers:
cpu:
metrics:
system.cpu.utilization:
enabled: true
load: null
memory:
metrics:
system.memory.utilization:
enabled: true
disk: null
filesystem:
metrics:
system.filesystem.utilization:
enabled: true
network: null
paging: null
process:
mute_process_name_error: true
metrics:
process.threads:
enabled: true
process.paging.faults:
enabled: true
process.cpu.utilization:
enabled: true
process.memory.utilization:
enabled: true
process.signals_pending:
enabled: true
process.open_file_descriptors:
enabled: true
process.context_switches:
enabled: true
process.disk.operations:
enabled: true
processors:
resource/linux_resource_attributes/localhost:
attributes:
- key: sumo.datasource
value: linux
action: insert
service:
pipelines:
metrics/linux/localhost:
receivers:
- hostmetrics/linux/localhost
processors:
- memory_limiter
- resource/linux_resource_attributes/localhost
- resourcedetection/system
- batch
exporters:
- sumologic
note

You'll need to restart the collector process in order to apply changes.

tip

Refer to our Additional Configurations Reference for more details about OpenTelemetry configuration.

Status
Legal
Privacy Statement
Terms of Use

Copyright © 2024 by Sumo Logic, Inc.