From 1d48528ca39c1e2907726a021b1cbae8f01189fc Mon Sep 17 00:00:00 2001 From: William Perron Date: Tue, 23 Jan 2024 08:32:34 -0500 Subject: [PATCH] add local build and run configs --- builder-config.yaml | 19 +++++++++++++++++++ otelcol-dev-config.yaml | 20 ++++++++++++++++++++ 2 files changed, 39 insertions(+) create mode 100644 otelcol-dev-config.yaml diff --git a/builder-config.yaml b/builder-config.yaml index 4d7c003..a549390 100644 --- a/builder-config.yaml +++ b/builder-config.yaml @@ -2,4 +2,23 @@ dist: name: otelcol-dev description: Basic Otel Collector for development + otelcol_version: 0.92.0 + version: 0.1.0-rc0 output_path: ./bin/otelcol-dev + +exporters: + - gomod: + # NOTE: Prior to v0.86.0 use the `loggingexporter` instead of `debugexporter`. + go.opentelemetry.io/collector/exporter/debugexporter v0.92.0 + - gomod: + go.opentelemetry.io/collector/exporter/otlpexporter v0.92.0 + - gomod: + go.wperron.io/sqliteexporter v0.1.0-rc0 # use the exporter from this repo + +processors: + - gomod: + go.opentelemetry.io/collector/processor/batchprocessor v0.92.0 + +receivers: + - gomod: + go.opentelemetry.io/collector/receiver/otlpreceiver v0.92.0 diff --git a/otelcol-dev-config.yaml b/otelcol-dev-config.yaml new file mode 100644 index 0000000..7fe6a5d --- /dev/null +++ b/otelcol-dev-config.yaml @@ -0,0 +1,20 @@ +receivers: + otlp: + protocols: + grpc: + http: + +processors: + batch: + +exporters: + debug: + sqlite: + path: local.db + +service: + pipelines: + traces: + receivers: [otlp] + processors: [batch] + exporters: [debug, sqlite]