Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

otel-collector: add otel-collector config and Makefile #2140

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading