renovate[bot] df4c9bac25 fix(deps): update module go.opentelemetry.io/contrib/instrumentation/net/http/otelhttp to v0.46.1 (#29465) hai 1 ano
..
client df4c9bac25 fix(deps): update module go.opentelemetry.io/contrib/instrumentation/net/http/otelhttp to v0.46.1 (#29465) hai 1 ano
server df4c9bac25 fix(deps): update module go.opentelemetry.io/contrib/instrumentation/net/http/otelhttp to v0.46.1 (#29465) hai 1 ano
.env f7e57f98c9 [examples/demo] Use most recent Docker image (#28566) hai 1 ano
README.md 943b345422 [chore] Update collector demo (#26675) hai 1 ano
demo-arch.png 366ec813df added a picture for demo components (#11874) %!s(int64=2) %!d(string=hai) anos
docker-compose.yaml 8b835a23aa Remove line causing container already existed (#27047) hai 1 ano
metadata.yaml 3f3817c6b5 [chore] update codeowners to match the CODEOWNERS file (#24454) hai 1 ano
otel-collector-config.yaml 4982f49841 [chore] update examples to use debugexporter (#26715) hai 1 ano
prometheus.yaml 150692dbbc Move example/demo since the core will not work without the exporters (#4872) %!s(int64=3) %!d(string=hai) anos

README.md

OpenTelemetry Collector Demo

IMPORTANT: This is a pre-released version of the OpenTelemetry Collector Contrib.

This demo contains a client and server applications that use the opentelemetry Go library for instrumentation and for sending telemetry data to the opentelemetry collector.

The client periodically makes http calls to the server which create client spans, server spans and metrics that track information like number of http requests and latency.

This demo presents the typical flow of observability data with multiple OpenTelemetry Collectors deployed:

  • The client and server send data directly to the OTel Collector;
  • The OTel Collector then sends the data to the appropriate backend, in this demo Jaeger, Zipkin, and Prometheus;

This demo uses docker-compose and by default runs against the otel/opentelemetry-collector:0.67.0 image. To run the demo, switch to the examples/demo folder and run:

docker compose up -d

The demo exposes the following backends:

Notes:

  • It may take some time for the application metrics to appear on the Prometheus dashboard;

To clean up any docker container from the demo run docker-compose down from the examples/demo folder.

Using a Locally Built Image

Developers interested in running a local build of the Collector need to build a docker image using the command below:

make docker-otelcontribcol

And set an environment variable OTELCOL_IMG to otelcontribcol before launching the command docker-compose up -d.