Skip to content

Latest commit

 

History

History
49 lines (31 loc) · 1.47 KB

OpenTelemetryDemo.md

File metadata and controls

49 lines (31 loc) · 1.47 KB

Opentelemetry Demo

This Demo instruments the microservices springboot application using opentelemetry and collects the associated traces to Jaeger and metrics to Prometheus which can be further visualized in grafana dashboard.

Here we are using opentelemetry blackbox instrumentation mechanism as mentioned in this blog.

Deploy Jaeger, prometheus, grafana, opentelemetry-collector

  • Run the docker-compose file to bring up Jaeger, prometheus, grafana, opentelemetry-collector containers.
podman-compose up
or
docker compose up

wait for containers to come up

Build and run the microservices application with opentelemetry instrumentation

Run the shell script to build and bring up the microservices with opentelemetry agent that is downloaded from here.

On one another tab run the following

./opentelemetry_demo.sh

Run Payload

./load.sh

You can browse the applications at following endpoints:

Jaeger UI: http://localhost:9090/ prometheus: http://localhost:8888/ grafana dashboard: http://localhost:3000/ Demo application: http://localhost:8080/api/v1/names/random

To access the metrics follow the below steps:

  • Go to grafana dashboard and select explore tab.
  • Select prometheus in the dropdown.
  • You can query the available metrics.