This example is built as part of the client_java project.
./mvnw package
Assuming ./examples/example-exporter-opentelemetry/target/example-exporter-opentelemetry.jar is present, run the demo with:
cd ./examples/example-exporter-opentelemetry/
docker-compose upThis will set up the following scenario:
flowchart LR
A[example app] -->|OTLP|B[OpenTelemetry collector] -->|Prometheus remote write|C[Prometheus server]
The OpenTelemetry collector is configured to log incoming metrics to the console. The Prometheus server is running on http://localhost:9090.