f5de21a343
configuration to config.yaml.
35 lines
709 B
YAML
35 lines
709 B
YAML
receivers:
|
|
hostmetrics:
|
|
collection_interval: 5s
|
|
scrapers:
|
|
cpu:
|
|
metrics:
|
|
system.cpu.utilization:
|
|
enabled: true
|
|
processors:
|
|
resourcedetection:
|
|
detectors: [env, system]
|
|
system:
|
|
hostname_sources: ["os"]
|
|
resource_attributes:
|
|
host.id:
|
|
enabled: true
|
|
batch:
|
|
memory_limiter:
|
|
check_interval: 1s
|
|
limit_mib: 1000
|
|
spike_limit_mib: 200
|
|
exporters:
|
|
debug:
|
|
verbosity: detailed
|
|
otlp:
|
|
endpoint: ${OTLP_ENDPOINT}
|
|
headers:
|
|
api-key: ${OTLP_API_KEY}
|
|
service:
|
|
pipelines:
|
|
metrics:
|
|
receivers: [hostmetrics]
|
|
processors: [memory_limiter, resourcedetection, batch]
|
|
exporters: [debug, otlp]
|