Skip to content

Latest commit

 

History

History
 
 

README.md

OpenTelemetry Exporter Example

Build

This example is built as part of the client_java project.

./mvnw package

Run

Assuming ./examples/example-exporter-opentelemetry/target/example-exporter-opentelemetry.jar is present, run the demo with:

cd ./examples/example-exporter-opentelemetry/
docker-compose up

This will set up the following scenario:

flowchart LR
   A[example app] -->|OTLP|B[OpenTelemetry collector] -->|Prometheus remote write|C[Prometheus server]
Loading

The OpenTelemetry collector is configured to log incoming metrics to the console. The Prometheus server is running on http://localhost:9090.