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

Test jaeger example and align examples with docs #134

Merged
merged 3 commits into from
Feb 23, 2024
Merged
Show file tree
Hide file tree
Changes from 2 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: 3 additions & 7 deletions config_examples/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,7 @@ Here you can find a collection of example Collector configurations.

## Samples

- [Drop](drop.yaml)
- [Effective](effective.yaml)
- [Health check](healthcheck.yaml)
- [Jaeger Receiver](jaeger.yaml)
- [Pipeline](pipeline.yaml)
- [Tail sampling](tail_sampling.yaml)

## Sending data to Dynatrace
Expand All @@ -18,7 +14,7 @@ so you can also see the data in your Dynatrace environment.

Before running the samples, make sure you have the following environment variables set:

- `DT_OTLP_ENDPOINT`: The OTLP HTTP endpoint of your Dynatrace environment.
- `DT_ENDPOINT`: The OTLP HTTP endpoint of your Dynatrace environment.
- Follow the guide: [Export to ActiveGate](https://docs.dynatrace.com/docs/shortlink/otel-getstarted-otlpexport#export-to-activegate)
to see how to get the correct API URL for your environment
- `API_TOKEN`: The Dynatrace API access token. Follow the guide on [Authentication](https://docs.dynatrace.com/docs/shortlink/otel-getstarted-otlpexport#authentication-export-to-activegate) to see the scopes required for ingesting OTLP data.
Expand All @@ -30,7 +26,7 @@ You can try each configuration example by simply passing the file to the collect
```shell
docker run --rm \
--name dt-otelcol \
--env DT_OTLP_ENDPOINT=$DT_OTLP_ENDPOINT \
--env DT_ENDPOINT=$DT_ENDPOINT \
--env API_TOKEN=$API_TOKEN \
-p 4317:4317 \
-v $(pwd)/config_examples/tail_sampling.yaml:/collector.yaml \
Expand All @@ -43,7 +39,7 @@ Or try it out from the GitHub repo if you don't have it cloned:
```shell
docker run --rm \
--name dt-otelcol \
--env DT_OTLP_ENDPOINT=$DT_OTLP_ENDPOINT \
--env DT_ENDPOINT=$DT_ENDPOINT \
--env API_TOKEN=$API_TOKEN \
-p 4317:4317 \
ghcr.io/dynatrace/dynatrace-otel-collector/dynatrace-otel-collector:latest \
Expand Down
10 changes: 0 additions & 10 deletions config_examples/drop.yaml

This file was deleted.

43 changes: 0 additions & 43 deletions config_examples/effective.yaml

This file was deleted.

25 changes: 0 additions & 25 deletions config_examples/healthcheck.yaml

This file was deleted.

16 changes: 8 additions & 8 deletions config_examples/jaeger.yaml
Original file line number Diff line number Diff line change
@@ -1,17 +1,17 @@
exporters:
otlphttp:
endpoint: https://${env:HOST}/api/v2/otlp
headers:
Authorization: Api-Token ${env:API_TOKEN}

receivers:
jaeger:
protocols:
thrift_http:
grpc:
endpoint: 0.0.0.0:14250
evan-bradley marked this conversation as resolved.
Show resolved Hide resolved

exporters:
otlphttp:
endpoint: ${env:DT_ENDPOINT}
headers:
Authorization: "Api-Token ${env:API_TOKEN}"

service:
pipelines:
traces:
receivers: [jaeger]
processors: []
exporters: [otlphttp]
22 changes: 0 additions & 22 deletions config_examples/pipeline.yaml

This file was deleted.

2 changes: 1 addition & 1 deletion config_examples/tail_sampling.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ exporters:
debug:
verbosity: detailed
otlphttp:
endpoint: ${env:DT_OTLP_ENDPOINT}
endpoint: ${env:DT_ENDPOINT}
headers:
Authorization: "Api-Token ${env:API_TOKEN}"

Expand Down
24 changes: 18 additions & 6 deletions go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ require (
)

require (
contrib.go.opencensus.io/exporter/prometheus v0.4.2 // indirect
github.com/DataDog/datadog-agent/pkg/trace/exportable v0.0.0-20201016145401-4646cf596b02 // indirect
github.com/apache/thrift v0.19.0 // indirect
github.com/beorn7/perks v1.0.1 // indirect
github.com/cenkalti/backoff/v4 v4.2.1 // indirect
Expand All @@ -20,13 +20,13 @@ require (
github.com/davecgh/go-spew v1.1.2-0.20180830191138-d8f796af33cc // indirect
github.com/expr-lang/expr v1.16.0 // indirect
github.com/felixge/httpsnoop v1.0.4 // indirect
github.com/fluent/fluent-logger-golang v1.9.0 // indirect
github.com/fsnotify/fsnotify v1.7.0 // indirect
github.com/go-kit/log v0.2.1 // indirect
github.com/go-logfmt/logfmt v0.6.0 // indirect
github.com/go-logr/logr v1.4.1 // indirect
github.com/go-logr/stdr v1.2.2 // indirect
github.com/go-ole/go-ole v1.2.6 // indirect
github.com/go-viper/mapstructure/v2 v2.0.0-alpha.1 // indirect
github.com/gobwas/glob v0.2.3 // indirect
github.com/gogo/googleapis v1.4.1 // indirect
github.com/gogo/protobuf v1.3.2 // indirect
github.com/golang/groupcache v0.0.0-20210331224755-41bb18bfe9da // indirect
Expand All @@ -52,36 +52,50 @@ require (
github.com/modern-go/concurrent v0.0.0-20180306012644-bacd9c7ef1dd // indirect
github.com/modern-go/reflect2 v1.0.2 // indirect
github.com/mostynb/go-grpc-compression v1.2.2 // indirect
github.com/open-telemetry/opentelemetry-collector-contrib/exporter/carbonexporter v0.94.0 // indirect
github.com/open-telemetry/opentelemetry-collector-contrib/exporter/opencensusexporter v0.94.0 // indirect
github.com/open-telemetry/opentelemetry-collector-contrib/exporter/prometheusexporter v0.94.0 // indirect
github.com/open-telemetry/opentelemetry-collector-contrib/exporter/sapmexporter v0.94.0 // indirect
github.com/open-telemetry/opentelemetry-collector-contrib/exporter/signalfxexporter v0.94.0 // indirect
github.com/open-telemetry/opentelemetry-collector-contrib/exporter/syslogexporter v0.94.0 // indirect
github.com/open-telemetry/opentelemetry-collector-contrib/exporter/zipkinexporter v0.94.0 // indirect
github.com/open-telemetry/opentelemetry-collector-contrib/internal/common v0.94.0 // indirect
github.com/open-telemetry/opentelemetry-collector-contrib/internal/coreinternal v0.94.0 // indirect
github.com/open-telemetry/opentelemetry-collector-contrib/internal/sharedcomponent v0.94.0 // indirect
github.com/open-telemetry/opentelemetry-collector-contrib/internal/splunk v0.94.0 // indirect
github.com/open-telemetry/opentelemetry-collector-contrib/pkg/batchperresourceattr v0.94.0 // indirect
github.com/open-telemetry/opentelemetry-collector-contrib/pkg/experimentalmetricmetadata v0.94.0 // indirect
github.com/open-telemetry/opentelemetry-collector-contrib/pkg/golden v0.94.0 // indirect
github.com/open-telemetry/opentelemetry-collector-contrib/pkg/pdatautil v0.94.0 // indirect
github.com/open-telemetry/opentelemetry-collector-contrib/pkg/resourcetotelemetry v0.94.0 // indirect
github.com/open-telemetry/opentelemetry-collector-contrib/pkg/stanza v0.94.0 // indirect
github.com/open-telemetry/opentelemetry-collector-contrib/pkg/translator/jaeger v0.94.0 // indirect
github.com/open-telemetry/opentelemetry-collector-contrib/pkg/translator/opencensus v0.94.0 // indirect
github.com/open-telemetry/opentelemetry-collector-contrib/pkg/translator/prometheus v0.94.0 // indirect
github.com/open-telemetry/opentelemetry-collector-contrib/pkg/translator/signalfx v0.94.0 // indirect
github.com/open-telemetry/opentelemetry-collector-contrib/pkg/translator/zipkin v0.94.0 // indirect
github.com/open-telemetry/opentelemetry-collector-contrib/receiver/jaegerreceiver v0.94.0 // indirect
github.com/open-telemetry/opentelemetry-collector-contrib/receiver/opencensusreceiver v0.94.0 // indirect
github.com/open-telemetry/opentelemetry-collector-contrib/receiver/syslogreceiver v0.94.0 // indirect
github.com/open-telemetry/opentelemetry-collector-contrib/receiver/zipkinreceiver v0.94.0 // indirect
github.com/open-telemetry/opentelemetry-collector-contrib/testbed/mockdatasenders/mockdatadogagentexporter v0.94.0 // indirect
github.com/openzipkin/zipkin-go v0.4.2 // indirect
github.com/philhofer/fwd v1.1.2 // indirect
github.com/pmezard/go-difflib v1.0.1-0.20181226105442-5d4384ee4fb2 // indirect
github.com/power-devops/perfstat v0.0.0-20220216144756-c35f1ee13d7c // indirect
github.com/prometheus/client_golang v1.18.0 // indirect
github.com/prometheus/client_model v0.5.0 // indirect
github.com/prometheus/common v0.46.0 // indirect
github.com/prometheus/procfs v0.12.0 // indirect
github.com/prometheus/statsd_exporter v0.22.7 // indirect
github.com/rs/cors v1.10.1 // indirect
github.com/shirou/gopsutil/v3 v3.24.1 // indirect
github.com/shoenig/go-m1cpu v0.1.6 // indirect
github.com/signalfx/com_signalfx_metrics_protobuf v0.0.3 // indirect
github.com/signalfx/sapm-proto v0.14.0 // indirect
github.com/soheilhy/cmux v0.1.5 // indirect
github.com/spf13/cobra v1.8.0 // indirect
github.com/spf13/pflag v1.0.5 // indirect
github.com/tinylib/msgp v1.1.9 // indirect
github.com/tklauser/go-sysconf v0.3.12 // indirect
github.com/tklauser/numcpus v0.6.1 // indirect
github.com/valyala/fastjson v1.6.4 // indirect
Expand All @@ -103,7 +117,6 @@ require (
go.opentelemetry.io/collector/consumer v0.94.1 // indirect
go.opentelemetry.io/collector/exporter v0.94.1 // indirect
go.opentelemetry.io/collector/exporter/debugexporter v0.94.1 // indirect
go.opentelemetry.io/collector/exporter/loggingexporter v0.93.0 // indirect
go.opentelemetry.io/collector/exporter/otlpexporter v0.94.1 // indirect
go.opentelemetry.io/collector/exporter/otlphttpexporter v0.94.1 // indirect
go.opentelemetry.io/collector/extension v0.94.1 // indirect
Expand Down Expand Up @@ -149,7 +162,6 @@ require (
google.golang.org/genproto/googleapis/rpc v0.0.0-20240125205218-1f4bbc51befe // indirect
google.golang.org/grpc v1.61.0 // indirect
google.golang.org/protobuf v1.32.0 // indirect
gopkg.in/yaml.v2 v2.4.0 // indirect
)

replace cloud.google.com/go => cloud.google.com/go v0.112.0
Loading
Loading