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

[chore] Add docker demo to opensearchexporter #26

Draft
wants to merge 15 commits into
base: opensearchexporter-pub
Choose a base branch
from
Draft
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
10 changes: 10 additions & 0 deletions .chloggen/add-opensearchexporter.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
# Use this changelog template to create an entry for release notes.

change_type: new_component
component: opensearchexporter

# A brief description of the change. Surround your text with quotes ("") if it needs to start with a backtick (`).
note: Add opensearchexporter to otelcontribcol

# Mandatory: One or more tracking issues related to the change. You can use the PR number here if no issue exists.
issues: [24668]
4 changes: 4 additions & 0 deletions cmd/configschema/go.mod
Original file line number Diff line number Diff line change
@@ -492,6 +492,7 @@ require (
github.com/open-telemetry/opentelemetry-collector-contrib/exporter/googlecloudexporter v0.83.0 // indirect
github.com/open-telemetry/opentelemetry-collector-contrib/exporter/googlecloudpubsubexporter v0.83.0 // indirect
github.com/open-telemetry/opentelemetry-collector-contrib/exporter/googlemanagedprometheusexporter v0.83.0 // indirect
github.com/open-telemetry/opentelemetry-collector-contrib/exporter/opensearchexporter v0.83.0 // indirect
github.com/open-telemetry/opentelemetry-collector-contrib/exporter/prometheusexporter v0.83.0 // indirect
github.com/open-telemetry/opentelemetry-collector-contrib/extension/asapauthextension v0.83.0 // indirect
github.com/open-telemetry/opentelemetry-collector-contrib/extension/awsproxy v0.83.0 // indirect
@@ -529,6 +530,7 @@ require (
github.com/opencontainers/runc v1.1.5 // indirect
github.com/opencontainers/runtime-spec v1.1.0-rc.3 // indirect
github.com/opencontainers/selinux v1.11.0 // indirect
github.com/opensearch-project/opensearch-go/v2 v2.3.0 // indirect
github.com/openshift/api v3.9.0+incompatible // indirect
github.com/openshift/client-go v0.0.0-20210521082421-73d9475a9142 // indirect
github.com/opentracing/opentracing-go v1.2.0 // indirect
@@ -798,6 +800,8 @@ replace github.com/open-telemetry/opentelemetry-collector-contrib/exporter/mezmo

replace github.com/open-telemetry/opentelemetry-collector-contrib/exporter/opencensusexporter => ../../exporter/opencensusexporter

replace github.com/open-telemetry/opentelemetry-collector-contrib/exporter/opensearchexporter => ../../exporter/opensearchexporter

replace github.com/open-telemetry/opentelemetry-collector-contrib/exporter/parquetexporter => ../../exporter/parquetexporter

replace github.com/open-telemetry/opentelemetry-collector-contrib/exporter/prometheusexporter => ../../exporter/prometheusexporter
14 changes: 14 additions & 0 deletions cmd/configschema/go.sum

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 2 additions & 0 deletions cmd/otelcontribcol/builder-config.yaml
Original file line number Diff line number Diff line change
@@ -66,6 +66,7 @@ exporters:
- gomod: github.com/open-telemetry/opentelemetry-collector-contrib/exporter/lokiexporter v0.83.0
- gomod: github.com/open-telemetry/opentelemetry-collector-contrib/exporter/mezmoexporter v0.83.0
- gomod: github.com/open-telemetry/opentelemetry-collector-contrib/exporter/opencensusexporter v0.83.0
- gomod: github.com/open-telemetry/opentelemetry-collector-contrib/exporter/opensearchexporter v0.83.0
- gomod: github.com/open-telemetry/opentelemetry-collector-contrib/exporter/parquetexporter v0.83.0
- gomod: github.com/open-telemetry/opentelemetry-collector-contrib/exporter/prometheusexporter v0.83.0
- gomod: github.com/open-telemetry/opentelemetry-collector-contrib/exporter/prometheusremotewriteexporter v0.83.0
@@ -358,6 +359,7 @@ replaces:
- github.com/open-telemetry/opentelemetry-collector-contrib/exporter/fileexporter => ../../exporter/fileexporter
- github.com/open-telemetry/opentelemetry-collector-contrib/pkg/resourcetotelemetry => ../../pkg/resourcetotelemetry
- github.com/open-telemetry/opentelemetry-collector-contrib/exporter/opencensusexporter => ../../exporter/opencensusexporter
- github.com/open-telemetry/opentelemetry-collector-contrib/exporter/opensearchexporter => ../../exporter/opensearchexporter
- github.com/open-telemetry/opentelemetry-collector-contrib/internal/metadataproviders => ../../internal/metadataproviders
- github.com/open-telemetry/opentelemetry-collector-contrib/internal/aws/proxy => ../../internal/aws/proxy
- github.com/open-telemetry/opentelemetry-collector-contrib/receiver/snmpreceiver => ../../receiver/snmpreceiver
2 changes: 2 additions & 0 deletions cmd/otelcontribcol/components.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

12 changes: 12 additions & 0 deletions cmd/otelcontribcol/exporters_test.go
Original file line number Diff line number Diff line change
@@ -18,6 +18,7 @@ import (
"github.com/stretchr/testify/require"
"go.opentelemetry.io/collector/component"
"go.opentelemetry.io/collector/config/configgrpc"
"go.opentelemetry.io/collector/config/confighttp"
"go.opentelemetry.io/collector/exporter"
"go.opentelemetry.io/collector/exporter/exportertest"
"go.opentelemetry.io/collector/exporter/otlpexporter"
@@ -51,6 +52,7 @@ import (
"github.com/open-telemetry/opentelemetry-collector-contrib/exporter/lokiexporter"
"github.com/open-telemetry/opentelemetry-collector-contrib/exporter/mezmoexporter"
"github.com/open-telemetry/opentelemetry-collector-contrib/exporter/opencensusexporter"
"github.com/open-telemetry/opentelemetry-collector-contrib/exporter/opensearchexporter"
"github.com/open-telemetry/opentelemetry-collector-contrib/exporter/parquetexporter"
"github.com/open-telemetry/opentelemetry-collector-contrib/exporter/prometheusexporter"
"github.com/open-telemetry/opentelemetry-collector-contrib/exporter/pulsarexporter"
@@ -136,6 +138,16 @@ func TestDefaultExporters(t *testing.T) {
return cfg
},
},
{
exporter: "opensearch",
getConfigFn: func() component.Config {
cfg := expFactories["opensearch"].CreateDefaultConfig().(*opensearchexporter.Config)
cfg.HTTPClientSettings = confighttp.HTTPClientSettings{
Endpoint: "http://" + endpoint,
}
return cfg
},
},
{
exporter: "otlp",
getConfigFn: func() component.Config {
6 changes: 5 additions & 1 deletion cmd/otelcontribcol/go.mod
Original file line number Diff line number Diff line change
@@ -43,6 +43,7 @@ require (
github.com/open-telemetry/opentelemetry-collector-contrib/exporter/lokiexporter v0.83.0
github.com/open-telemetry/opentelemetry-collector-contrib/exporter/mezmoexporter v0.83.0
github.com/open-telemetry/opentelemetry-collector-contrib/exporter/opencensusexporter v0.83.0
github.com/open-telemetry/opentelemetry-collector-contrib/exporter/opensearchexporter v0.83.0
github.com/open-telemetry/opentelemetry-collector-contrib/exporter/parquetexporter v0.83.0
github.com/open-telemetry/opentelemetry-collector-contrib/exporter/prometheusexporter v0.83.0
github.com/open-telemetry/opentelemetry-collector-contrib/exporter/prometheusremotewriteexporter v0.83.0
@@ -189,6 +190,7 @@ require (
go.opentelemetry.io/collector v0.83.0
go.opentelemetry.io/collector/component v0.83.0
go.opentelemetry.io/collector/config/configgrpc v0.83.0
go.opentelemetry.io/collector/config/confighttp v0.83.0
go.opentelemetry.io/collector/confmap v0.83.0
go.opentelemetry.io/collector/connector v0.83.0
go.opentelemetry.io/collector/connector/forwardconnector v0.83.0
@@ -547,6 +549,7 @@ require (
github.com/opencontainers/runc v1.1.5 // indirect
github.com/opencontainers/runtime-spec v1.1.0-rc.3 // indirect
github.com/opencontainers/selinux v1.11.0 // indirect
github.com/opensearch-project/opensearch-go/v2 v2.3.0 // indirect
github.com/openshift/api v3.9.0+incompatible // indirect
github.com/openshift/client-go v0.0.0-20210521082421-73d9475a9142 // indirect
github.com/opentracing/opentracing-go v1.2.0 // indirect
@@ -636,7 +639,6 @@ require (
go.opencensus.io v0.24.0 // indirect
go.opentelemetry.io/collector/config/configauth v0.83.0 // indirect
go.opentelemetry.io/collector/config/configcompression v0.83.0 // indirect
go.opentelemetry.io/collector/config/confighttp v0.83.0 // indirect
go.opentelemetry.io/collector/config/confignet v0.83.0 // indirect
go.opentelemetry.io/collector/config/configopaque v0.83.0 // indirect
go.opentelemetry.io/collector/config/configtelemetry v0.83.0 // indirect
@@ -1017,6 +1019,8 @@ replace github.com/open-telemetry/opentelemetry-collector-contrib/pkg/resourceto

replace github.com/open-telemetry/opentelemetry-collector-contrib/exporter/opencensusexporter => ../../exporter/opencensusexporter

replace github.com/open-telemetry/opentelemetry-collector-contrib/exporter/opensearchexporter => ../../exporter/opensearchexporter

replace github.com/open-telemetry/opentelemetry-collector-contrib/internal/metadataproviders => ../../internal/metadataproviders

replace github.com/open-telemetry/opentelemetry-collector-contrib/internal/aws/proxy => ../../internal/aws/proxy
Loading