Skip to content

Commit

Permalink
otel-collector: add otel-collector config and Makefile
Browse files Browse the repository at this point in the history
Signed-off-by: Hank Donnay <[email protected]>
  • Loading branch information
hdonnay committed Sep 20, 2024
1 parent 9333770 commit eec7502
Show file tree
Hide file tree
Showing 3 changed files with 33 additions and 0 deletions.
2 changes: 2 additions & 0 deletions contrib/openshift/otel-collector/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
_build
otelcollector
7 changes: 7 additions & 0 deletions contrib/openshift/otel-collector/Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
otelcollector: builder.yaml
go run go.opentelemetry.io/collector/cmd/[email protected] --config=builder.yaml
cp _build/otelcollector .

.PHONY: clean
clean:
rm -rf _build otelcollector
24 changes: 24 additions & 0 deletions contrib/openshift/otel-collector/builder.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
dist:
name: otelcollector
description: Clair-flavored OpenTelemetry Collector binary
output_path: ./_build
version: '0.1.0'
exporters:
- gomod: github.com/open-telemetry/opentelemetry-collector-contrib/exporter/awsxrayexporter v0.109.0
- gomod: github.com/open-telemetry/opentelemetry-collector-contrib/exporter/prometheusexporter v0.109.0
- gomod: github.com/open-telemetry/opentelemetry-collector-contrib/exporter/prometheusremotewriteexporter v0.109.0
- gomod: github.com/open-telemetry/opentelemetry-collector-contrib/exporter/sentryexporter v0.109.0
- gomod: go.opentelemetry.io/collector/exporter/debugexporter v0.109.0

receivers:
- gomod: go.opentelemetry.io/collector/receiver/otlpreceiver v0.109.0

processors:
- gomod: go.opentelemetry.io/collector/processor/batchprocessor v0.109.0

providers:
- gomod: go.opentelemetry.io/collector/confmap/provider/envprovider v1.15.0
- gomod: go.opentelemetry.io/collector/confmap/provider/fileprovider v1.15.0
- gomod: go.opentelemetry.io/collector/confmap/provider/httpprovider v0.109.0
- gomod: go.opentelemetry.io/collector/confmap/provider/httpsprovider v0.109.0
- gomod: go.opentelemetry.io/collector/confmap/provider/yamlprovider v0.109.0

0 comments on commit eec7502

Please sign in to comment.