Use this repositroy to get started with OpenTelemerty on a single linux/s390x virtual machine.
Follow the instructions in the README.md of repository ibm-cloud-s390x-single-vm to create a virtual machine with linux/s390x architecture on IBM Cloud.
To install prometheus, jaeger, loki and grafana, perform these steps:
- Logon to the virtual machine created in the previous step:
ssh -l labuser <ipv4_address>
git clone https://github.com/rrschulze/otel-linux-s390x-get-started
cd https://github.com/rrschulze/otel-linux-s390x-get-started
sudo docker compose up -d
- Verify containers are up with
sudo docker ps
The tools can be accessed under the following links:
- Jaeger UI:
https://<ipv4_address>:16686/
- Prometheus UI:
https://<ipv4_address>:9090/
- Grafana UI:
https://<ipv4_address>:3000/
Perform the following steps to demonstrate automatic instrumentation with java
sudo apt install openjdk-17-jdk
git clone https://github.com/spring-projects/spring-petclinic.git
- './mvnw package'
- 'curl -L https://github.com/open-telemetry/opentelemetry-java-instrumentation/releases/latest/download/opentelemetry-javaagent.jar --output otelagent.jar'
- 'java -javaagent:./otelagent.jar -Dotel.service.name=s390x-tutorial -jar ./target/spring-petclinic-3.2.0-SNAPSHOT.jar'
- Browse for the traces of the service service s390x-tutorial
Build the opentelemetry-cpp project: