From f5de21a3435f8fb6854d1a1e0adb722ba0be46a2 Mon Sep 17 00:00:00 2001 From: Andras Bacsai Date: Thu, 16 Nov 2023 11:16:41 +0100 Subject: [PATCH] Add OTLP exporter and host metrics receiver configuration to config.yaml. --- examples/otl/config.yaml | 34 ++++++++++++++++++++++++++++++++++ 1 file changed, 34 insertions(+) create mode 100644 examples/otl/config.yaml diff --git a/examples/otl/config.yaml b/examples/otl/config.yaml new file mode 100644 index 000000000..a1b8b7ec4 --- /dev/null +++ b/examples/otl/config.yaml @@ -0,0 +1,34 @@ +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]