Skip to content

Commit

Permalink
add gcs and azure exporters
Browse files Browse the repository at this point in the history
  • Loading branch information
edeNFed committed Feb 20, 2023
1 parent fac9f8b commit 5020d2b
Show file tree
Hide file tree
Showing 29 changed files with 1,805 additions and 44 deletions.
22 changes: 22 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -210,6 +210,20 @@ docker-component: check-component
docker build -t $(COMPONENT) ./cmd/$(COMPONENT)/
rm ./cmd/$(COMPONENT)/$(COMPONENT)

.PHONY: docker-component-arm64 # Not intended to be used directly
docker-component-arm64: check-component
GOOS=linux GOARCH=arm64 $(MAKE) $(COMPONENT)
cp ./bin/$(COMPONENT)_linux_arm64 ./cmd/$(COMPONENT)/$(COMPONENT)
docker build -t $(DOCKER_IMAGE) ./cmd/$(COMPONENT)/
rm ./cmd/$(COMPONENT)/$(COMPONENT)

.PHONY: docker-component-amd64 # Not intended to be used directly
docker-component-amd64: check-component
GOOS=linux GOARCH=amd64 $(MAKE) $(COMPONENT)
cp ./bin/$(COMPONENT)_linux_amd64 ./cmd/$(COMPONENT)/$(COMPONENT)
docker buildx build -t $(DOCKER_IMAGE) ./cmd/$(COMPONENT)/ --platform linux/amd64
rm ./cmd/$(COMPONENT)/$(COMPONENT)

.PHONY: check-component
check-component:
ifndef COMPONENT
Expand All @@ -220,6 +234,14 @@ endif
docker-otelcontribcol:
COMPONENT=otelcontribcol $(MAKE) docker-component

.PHONY: docker-arm64
docker-arm64:
COMPONENT=otelcontribcol $(MAKE) docker-component-arm64

.PHONY: docker-amd64
docker-amd64:
COMPONENT=otelcontribcol $(MAKE) docker-component-amd64

.PHONY: generate
generate:
cd cmd/mdatagen && $(GOCMD) install .
Expand Down
8 changes: 6 additions & 2 deletions cmd/otelcontribcol/builder-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ exporters:
- gomod: github.com/open-telemetry/opentelemetry-collector-contrib/exporter/awsemfexporter v0.71.0
- gomod: github.com/open-telemetry/opentelemetry-collector-contrib/exporter/awskinesisexporter v0.71.0
- gomod: github.com/open-telemetry/opentelemetry-collector-contrib/exporter/awsxrayexporter v0.71.0
- gomod: github.com/open-telemetry/opentelemetry-collector-contrib/exporter/azuredataexplorerexporter v0.71.0
# - gomod: github.com/open-telemetry/opentelemetry-collector-contrib/exporter/azuredataexplorerexporter v0.71.0
- gomod: github.com/open-telemetry/opentelemetry-collector-contrib/exporter/azuremonitorexporter v0.71.0
- gomod: github.com/open-telemetry/opentelemetry-collector-contrib/exporter/carbonexporter v0.71.0
- gomod: github.com/open-telemetry/opentelemetry-collector-contrib/exporter/clickhouseexporter v0.71.0
Expand All @@ -46,6 +46,8 @@ exporters:
- gomod: github.com/open-telemetry/opentelemetry-collector-contrib/exporter/fileexporter v0.71.0
- gomod: github.com/open-telemetry/opentelemetry-collector-contrib/exporter/googlecloudexporter v0.71.0
- gomod: github.com/open-telemetry/opentelemetry-collector-contrib/exporter/googlecloudpubsubexporter v0.71.0
- gomod: github.com/open-telemetry/opentelemetry-collector-contrib/exporter/googlecloudstorageexporter v0.71.0
- gomod: github.com/open-telemetry/opentelemetry-collector-contrib/exporter/azureblobstorageexporter v0.71.0
- gomod: github.com/open-telemetry/opentelemetry-collector-contrib/exporter/googlemanagedprometheusexporter v0.71.0
- gomod: github.com/open-telemetry/opentelemetry-collector-contrib/exporter/influxdbexporter v0.71.0
- gomod: github.com/open-telemetry/opentelemetry-collector-contrib/exporter/instanaexporter v0.71.0
Expand Down Expand Up @@ -191,6 +193,8 @@ replaces:
- github.com/open-telemetry/opentelemetry-collector-contrib/receiver/dockerstatsreceiver => ../../receiver/dockerstatsreceiver
- github.com/open-telemetry/opentelemetry-collector-contrib/receiver/chronyreceiver => ../../receiver/chronyreceiver
- github.com/open-telemetry/opentelemetry-collector-contrib/exporter/googlecloudpubsubexporter => ../../exporter/googlecloudpubsubexporter
- github.com/open-telemetry/opentelemetry-collector-contrib/exporter/googlecloudstorageexporter => ../../exporter/googlecloudstorageexporter
- github.com/open-telemetry/opentelemetry-collector-contrib/exporter/azureblobstorageexporter => ../../exporter/azureblobstorageexporter
- github.com/open-telemetry/opentelemetry-collector-contrib/exporter/awsxrayexporter => ../../exporter/awsxrayexporter
- github.com/open-telemetry/opentelemetry-collector-contrib/receiver/postgresqlreceiver => ../../receiver/postgresqlreceiver
- github.com/open-telemetry/opentelemetry-collector-contrib/exporter/jaegerexporter => ../../exporter/jaegerexporter
Expand Down Expand Up @@ -288,7 +292,7 @@ replaces:
- github.com/open-telemetry/opentelemetry-collector-contrib/receiver/purefbreceiver => ../../receiver/purefbreceiver
- github.com/open-telemetry/opentelemetry-collector-contrib/receiver/memcachedreceiver => ../../receiver/memcachedreceiver
- github.com/open-telemetry/opentelemetry-collector-contrib/exporter/azuremonitorexporter => ../../exporter/azuremonitorexporter
- github.com/open-telemetry/opentelemetry-collector-contrib/exporter/azuredataexplorerexporter => ../../exporter/azuredataexplorerexporter
# - github.com/open-telemetry/opentelemetry-collector-contrib/exporter/azuredataexplorerexporter => ../../exporter/azuredataexplorerexporter
- github.com/open-telemetry/opentelemetry-collector-contrib/internal/k8sconfig => ../../internal/k8sconfig
- github.com/open-telemetry/opentelemetry-collector-contrib/receiver/carbonreceiver => ../../receiver/carbonreceiver
- github.com/open-telemetry/opentelemetry-collector-contrib/exporter/splunkhecexporter => ../../exporter/splunkhecexporter
Expand Down
6 changes: 4 additions & 2 deletions cmd/otelcontribcol/components.go

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

27 changes: 14 additions & 13 deletions cmd/otelcontribcol/go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ require (
github.com/open-telemetry/opentelemetry-collector-contrib/exporter/awsemfexporter v0.71.0
github.com/open-telemetry/opentelemetry-collector-contrib/exporter/awskinesisexporter v0.71.0
github.com/open-telemetry/opentelemetry-collector-contrib/exporter/awsxrayexporter v0.71.0
github.com/open-telemetry/opentelemetry-collector-contrib/exporter/azuredataexplorerexporter v0.71.0
github.com/open-telemetry/opentelemetry-collector-contrib/exporter/azureblobstorageexporter v0.71.0
github.com/open-telemetry/opentelemetry-collector-contrib/exporter/azuremonitorexporter v0.71.0
github.com/open-telemetry/opentelemetry-collector-contrib/exporter/carbonexporter v0.71.0
github.com/open-telemetry/opentelemetry-collector-contrib/exporter/clickhouseexporter v0.71.0
Expand All @@ -22,6 +22,7 @@ require (
github.com/open-telemetry/opentelemetry-collector-contrib/exporter/fileexporter v0.71.0
github.com/open-telemetry/opentelemetry-collector-contrib/exporter/googlecloudexporter v0.71.0
github.com/open-telemetry/opentelemetry-collector-contrib/exporter/googlecloudpubsubexporter v0.71.0
github.com/open-telemetry/opentelemetry-collector-contrib/exporter/googlecloudstorageexporter v0.71.0
github.com/open-telemetry/opentelemetry-collector-contrib/exporter/googlemanagedprometheusexporter v0.71.0
github.com/open-telemetry/opentelemetry-collector-contrib/exporter/influxdbexporter v0.71.0
github.com/open-telemetry/opentelemetry-collector-contrib/exporter/instanaexporter v0.71.0
Expand Down Expand Up @@ -180,6 +181,7 @@ require (
cloud.google.com/go/monitoring v1.9.1 // indirect
cloud.google.com/go/pubsub v1.28.0 // indirect
cloud.google.com/go/spanner v1.44.0 // indirect
cloud.google.com/go/storage v1.29.0 // indirect
cloud.google.com/go/trace v1.8.0 // indirect
code.cloudfoundry.org/clock v0.0.0-20180518195852-02e53af36e6c // indirect
code.cloudfoundry.org/go-diodes v0.0.0-20211115184647-b584dd5df32c // indirect
Expand All @@ -191,25 +193,23 @@ require (
github.com/AthenZ/athenz v1.10.39 // indirect
github.com/Azure/azure-amqp-common-go/v4 v4.0.0 // indirect
github.com/Azure/azure-event-hubs-go/v3 v3.4.0 // indirect
github.com/Azure/azure-kusto-go v0.9.2 // indirect
github.com/Azure/azure-pipeline-go v0.2.3 // indirect
github.com/Azure/azure-sdk-for-go v67.1.0+incompatible // indirect
github.com/Azure/azure-sdk-for-go/sdk/azcore v0.21.1 // indirect
github.com/Azure/azure-sdk-for-go/sdk/internal v0.8.3 // indirect
github.com/Azure/azure-sdk-for-go/sdk/storage/azblob v0.3.0 // indirect
github.com/Azure/azure-sdk-for-go/sdk/azcore v1.3.0 // indirect
github.com/Azure/azure-sdk-for-go/sdk/azidentity v1.2.1 // indirect
github.com/Azure/azure-sdk-for-go/sdk/internal v1.1.1 // indirect
github.com/Azure/azure-sdk-for-go/sdk/storage/azblob v1.0.0 // indirect
github.com/Azure/azure-storage-blob-go v0.15.0 // indirect
github.com/Azure/azure-storage-queue-go v0.0.0-20191125232315-636801874cdd // indirect
github.com/Azure/go-amqp v0.18.1 // indirect
github.com/Azure/go-autorest v14.2.0+incompatible // indirect
github.com/Azure/go-autorest/autorest v0.11.28 // indirect
github.com/Azure/go-autorest/autorest/adal v0.9.21 // indirect
github.com/Azure/go-autorest/autorest/azure/auth v0.5.11 // indirect
github.com/Azure/go-autorest/autorest/azure/cli v0.4.5 // indirect
github.com/Azure/go-autorest/autorest/date v0.3.0 // indirect
github.com/Azure/go-autorest/autorest/to v0.4.0 // indirect
github.com/Azure/go-autorest/autorest/validation v0.3.1 // indirect
github.com/Azure/go-autorest/logger v0.2.1 // indirect
github.com/Azure/go-autorest/tracing v0.6.0 // indirect
github.com/AzureAD/microsoft-authentication-library-for-go v0.8.1 // indirect
github.com/ClickHouse/ch-go v0.51.2 // indirect
github.com/ClickHouse/clickhouse-go/v2 v2.6.0 // indirect
github.com/DataDog/agent-payload/v5 v5.0.70 // indirect
Expand Down Expand Up @@ -299,7 +299,6 @@ require (
github.com/dennwc/varint v1.0.0 // indirect
github.com/devigned/tab v0.1.1 // indirect
github.com/digitalocean/godo v1.91.1 // indirect
github.com/dimchansky/utfbom v1.1.1 // indirect
github.com/docker/distribution v2.8.1+incompatible // indirect
github.com/docker/docker v23.0.0+incompatible // indirect
github.com/docker/go-connections v0.4.1-0.20210727194412-58542c764a11 // indirect
Expand Down Expand Up @@ -342,7 +341,7 @@ require (
github.com/gobwas/glob v0.2.3 // indirect
github.com/godbus/dbus v0.0.0-20190726142602-4481cbc300e2 // indirect
github.com/godbus/dbus/v5 v5.0.6 // indirect
github.com/gofrs/uuid v4.2.0+incompatible // indirect
github.com/gofrs/uuid v4.0.0+incompatible // indirect
github.com/gogo/googleapis v1.4.1 // indirect
github.com/gogo/protobuf v1.3.2 // indirect
github.com/golang-jwt/jwt v3.2.2+incompatible // indirect
Expand Down Expand Up @@ -440,7 +439,7 @@ require (
github.com/modern-go/concurrent v0.0.0-20180306012644-bacd9c7ef1dd // indirect
github.com/modern-go/reflect2 v1.0.2 // indirect
github.com/mongodb-forks/digest v1.0.4 // indirect
github.com/montanaflynn/stats v0.0.0-20171201202039-1bf9dbcd8cbe // indirect
github.com/montanaflynn/stats v0.6.6 // indirect
github.com/mostynb/go-grpc-compression v1.1.17 // indirect
github.com/mrunalp/fileutils v0.5.0 // indirect
github.com/mtibben/percent v0.2.1 // indirect
Expand Down Expand Up @@ -664,6 +663,10 @@ replace github.com/open-telemetry/opentelemetry-collector-contrib/receiver/chron

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

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

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

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

replace github.com/open-telemetry/opentelemetry-collector-contrib/receiver/postgresqlreceiver => ../../receiver/postgresqlreceiver
Expand Down Expand Up @@ -858,8 +861,6 @@ replace github.com/open-telemetry/opentelemetry-collector-contrib/receiver/memca

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

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

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

replace github.com/open-telemetry/opentelemetry-collector-contrib/receiver/carbonreceiver => ../../receiver/carbonreceiver
Expand Down
Loading

0 comments on commit 5020d2b

Please sign in to comment.